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


IEditSketchExtension2.Deactivate Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditSketchExtension2.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

IEditSketchExtension2 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