This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditTask Interface > IEngineEditTask.Deactivate Method (ArcObjects .NET 10.4 SDK) |
Notifies the task that the edit sketch is deactivated.
[Visual Basic .NET]
Public Sub Deactivate ( _
)
[C#] public void Deactivate ( );
[C++]
HRESULT Deactivate(
void
);
Deactivate is called when a different edit task is set as the current edit task either programmatically using the IEngineEditor::CurrentTask property, or interactively by the end user selecting the edit task using the ControlsEditingTaskToolControl. Deactivate is also called on the IEngineEditor::CurrentTask when the IEngineEditor::StopEditing method is called, or interactively by the end user selecting the ControlsEditingStopCommand.
Use the Deactivate method to clean up any code created by the Activate method. For example, to stop listening for Engine editing events and to set objects used by the task to null.