ArcObjects Library Reference (Editor)  

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 | IEditTask.Name Property | Editor Class | ISnapEnvironment Interface | IEditEvents2 Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditor Interface | IEditSketch Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | IEditLayers Interface | IEditTask.Activate Method | IEditTask.OnDeleteSketch Method | IEditEvents Interface | IExtension Interface