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


IDatasetEditEx.IsBeingEdited Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetEditEx Interface > IDatasetEditEx.IsBeingEdited Method
ArcGIS Developer Help

IDatasetEditEx.IsBeingEdited Method

True if the dataset is being edited, else returns the reason why it is not editable.

[Visual Basic .NET]
Public Sub IsBeingEdited ( _
    ByRef IsBeingEdited As Boolean, _
    ByRef hrReason As Integer _
)
[C#]
public void IsBeingEdited (
    ref bool IsBeingEdited,
    ref int hrReason
);
[C++]
HRESULT IsBeingEdited(
  Boolean* IsBeingEdited,
  System.Int32* hrReason
);
[C++]
Parameters
IsBeingEdited [out]

IsBeingEdited is a parameter of type bool* hrReason [out]
hrReason is a parameter of type HRESULT*

Product Availability

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

Remarks

Once an edit session has been started on a workspace, the IsBeingEdited method on the IDatasetEditEx interface can be used to determine if a particular dataset is participating in the edit session, and if its not, what the reason is.

Possible reasons why a dataset may not participate include: the connected user has no privileges or permission to edit the dataset, the connected user is not licensed to edit this type of dataset, or the dataset is not versioned but a versioned edit session has been started (or vice versa).

See Also

IDatasetEditEx Interface