This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor Interface > IEditor.StartEditing Method (ArcObjects .NET 10.5 SDK) |
Starts an edit session.
[Visual Basic .NET] Public Sub StartEditing ( _ ByVal workspace As IWorkspace _ )
[C#] public void StartEditing ( IWorkspace workspace );
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.
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.