This document is archived and information here might be outdated.  Recommended version.


IEditor.StartEditing Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditor.StartEditing Method

Starts an edit session.

[Visual Basic .NET]
Public Sub StartEditing ( _
    ByVal workspace As IWorkspace _
)
[C#]
public void StartEditing (
    IWorkspace workspace
);

Product Availability

Available with ArcGIS Desktop.

Description


Errors Returned

FDO_E_VERSION_BEING_RECONCILED=[-2147217138]
Operation not allowed while the version is being reconciled.

E_EDITOR_CANTEDITAIWORKSPACE=514
At version 8.3 and higher you cannot start an edit session against a coverage workspace.

Remarks

Data from multiple workspaces may be loaded into a single map. However, the editor can only edit one workspace at a time. For this reason, when calling StartEditing, you must specify the workspace you wish to edit and this workspace must be represented in the focus map.  If no feature layers from the workspace are present in the focus map, StartEditing will fail.

StartEditing may also fail if the data is read-only or if it is non versioned SDE data.

Any references to features, cursors, or other geodatabase classes that you intend to use in the edit session should be acquired inside the edit session. 

See Also

IEditor Interface

.NET Related Topics

Managing edit sessions and edit operations