Interface IWorkspaceEdit2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that control Workspace Editing.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("199A1F9D-435A-4118-9B3F-4E0B8F984AA0")]
public interface IWorkspaceEdit2 : IWorkspaceEdit

Remarks

The IWorkspaceEdit2 interface has two properties. EditDataChanges can be used to retrieve the changes made in the current edit session (or edit operation), and IsInEditOperation can be used to determine if the workspace edit session is in an active edit operation.

Properties

EditDataChanges[esriEditDataChangesType]

gets changes during edit session

IDataChangesEx EditDataChanges[esriEditDataChangesType editChangeType] { get; }

Parameters

editChangeType esriEditDataChangesType

Property Value

IDataChangesEx

Remarks

This property can be used to get a reference to the IDataChangesEx interface. It has one argument which corresponds to the esriEditDataChangesType enumeration. This is used to specify which set of data changes are returned; those from the current edit session or the current edit operation.

The IDataChangesEx interface can be used by application developers to find out what features have been changed with the scope of an edit session or edit operation. The changes returned from a IDataChangesEx object are only accurate to the time of object creation. This means that any edits made after a reference to the IDataChangesEx object will not be reflected when ChangedIDs, Extract, and ExtractEx members are called.

It is recommended that editing be done within an edit operation. Although it is possible to edit some data types outside of an edit operation, its edit state association will be non-deterministic. The scope of the data changes can not be guaranteed when the ChangedIDs, Extract, and ExtractEx members are called on an edit session with edits made outside of an edit operation.

IsInEditOperation

Is the workspace currently in an edit operation?

bool IsInEditOperation { get; }

Property Value

bool

Remarks

Returns a Boolean corresponding to if the workspace is currently in an edit operation. This Boolean property should be used when deciding to start an edit operation.

Methods

AbortEditOperation()

void AbortEditOperation()

DisableUndoRedo()

void DisableUndoRedo()

EnableUndoRedo()

void EnableUndoRedo()

HasEdits(ref bool)

void HasEdits(ref bool HasEdits)

Parameters

HasEdits bool

HasRedos(ref bool)

void HasRedos(ref bool HasRedos)

Parameters

HasRedos bool

HasUndos(ref bool)

void HasUndos(ref bool HasUndos)

Parameters

HasUndos bool

IsBeingEdited()

bool IsBeingEdited()

Returns

bool

RedoEditOperation()

void RedoEditOperation()

StartEditOperation()

void StartEditOperation()

StartEditing(bool)

void StartEditing(bool withUndoRedo)

Parameters

withUndoRedo bool

StopEditOperation()

void StopEditOperation()

StopEditing(bool)

void StopEditing(bool saveEdits)

Parameters

saveEdits bool

UndoEditOperation()

void UndoEditOperation()