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


IWorkspaceEdit.StartEditing Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IWorkspaceEdit.StartEditing Method

Starts editing the workspace.

[Visual Basic .NET]
Public Sub StartEditing ( _
    ByVal withUndoRedo As Boolean _
)
[C#]
public void StartEditing (
    bool withUndoRedo
);
[C++]
HRESULT StartEditing(
  VARIANT_BOOL withUndoRedo
);
[C++]

Parameters withUndoRedo withUndoRedo is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Errors Returned

FDO_E_VERSION_BEING_RECONCILED: Operation not allowed while the version is being reconciled.

Remarks

An edit session may be started using the StartEditing method. The withUndoRedo parameter can be used to suppress undo/redo logging if the workspace supports such suppression. Note that the supression of undo/redo logging is not supported for remote database workspaces.  StartEditing cannot be called when a edit session is already active.  StopEditing must be called first before a new edit session can be started.

Note:  With non-versioned editing always be sure to check the current edit state via IsBeingEdited before called StartEditing or StopEditing.  If the workspace is being edited outside your context, there is no need to call StartEditing.

See Also

IWorkspaceEdit Interface

.NET Samples

Bind a geodatabase table to a .NET control (Code Files: TableWrapper)

.NET Related Topics

Editing with the geodatabase API | Geodatabase API best practices | GeoDatabaseUI | How to load a raster dataset to the raster field in a feature class