This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor Interface > IEditor.EditWorkspace Property (ArcObjects .NET 10.4 SDK) |
Reference to the workspace being edited.
[Visual Basic .NET] Public ReadOnly Property EditWorkspace As IWorkspace
[C#] public IWorkspace EditWorkspace {get;}
public void saveEdits()
{
IWorkspace editWorkspace;
//assumes you have a featureclass variable declared and set already as
//IfeatureClass featureClass.
editWorkspace=featureClass.FeatureDataset.Workspace;
UID editUid=new UIDClass();
editUid.Value="esriEditor.Editor";
//You can get app from ICommand :: OnCreate() hook parameter
m_editor=m_app.FindExtensionByCLSID(editUid);
editWorkspace=m_editor.EditWorkspace;
m_editor.StopEditing(true);
m_editor.StartEditing(editWorkspace);
}