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


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

IEditSketchExtension.Deactivate Method

Called when the sketch extension is no longer needed.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

The ::Deactivate() method is the last method called by the controller on the extension.  Use it to release any unneeded memory reference pointers which the extension may have been holding on to.

[C#]
public void Deactivate()
{
  if (m_editor != null)
    m_editor = null;
}
[Visual Basic .NET]
Public  Sub Deactivate()
  If Not m_editor Is Nothing Then
    m_editor = Nothing
  End If
End Sub

See Also

IEditSketchExtension Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditSketch Interface | IEditTask.Activate Method | IEditor Interface | IEditTask.Deactivate Method | ISnapEnvironment Interface | IEditEvents2 Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | Editor Class | Editor Library | IEditTask.OnFinishSketch Method | IEditAttributeProperties Interface | IEditTask.OnDeleteSketch Method | IEditProperties Interface | IExtension Interface | IEditSketchExtension2 Interface