public static void Unsubscribe( Action<ToolEventArgs> action )
Public Overloads Shared Sub Unsubscribe( _ ByVal action As Action(Of ToolEventArgs) _ )
Parameters
- action
- The method being called.
public static void Unsubscribe( Action<ToolEventArgs> action )
Public Overloads Shared Sub Unsubscribe( _ ByVal action As Action(Of ToolEventArgs) _ )
private void SubscribeEvent() { ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent.Subscribe(OnActiveToolChanged); } private void UnSubscribeEvent() { ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent.Unsubscribe(OnActiveToolChanged); } private void OnActiveToolChanged(ArcGIS.Desktop.Framework.Events.ToolEventArgs args) { string prevTool = args.PreviousID; string newTool = args.CurrentID; }
Target Platforms: Windows 11, Windows 10