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


IEngineEditTask.Deactivate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditTask Interface > IEngineEditTask.Deactivate Method
ArcGIS Developer Help

IEngineEditTask.Deactivate Method

Notifies the task that the edit sketch is deactivated.

[Visual Basic .NET]
Public Sub Deactivate ( _
)
[C#]
public void Deactivate (
);
[C++]
HRESULT Deactivate(
void
);

Product Availability

Available with ArcGIS Engine.

Description

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.

See Also

IEngineEditTask Interface