public SubscriptionToken Subscribe( Action<TEventArgs> action, bool keepSubscriberAlive )
Public Function Subscribe( _ ByVal action As Action(Of TEventArgs), _ Optional ByVal keepSubscriberAlive As Boolean _ ) As SubscriptionToken
Parameters
- action
- The delegate that gets executed when the event is published.
- keepSubscriberAlive
- When false the event maintains a weak delegate reference to the subscriber.
Return Value
A ArcGIS.Core.Events.SubscriptionToken that uniquely identifies the added subscription.