ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Events Namespace / RegisteredPresentationEvent<TSubscriptionParam,TPayload> Class / OnSubscribe Method
The parameter passed to the Register method
The subscription token that is assigned to the subscriber

In This Topic
    OnSubscribe Method
    In This Topic
    Callback made on the event instance when a subscriber subscribes to the event
    Syntax
    protected virtual void OnSubscribe( 
       TSubscriptionParam param,
       SubscriptionToken token
    )
    Protected Overridable Sub OnSubscribe( _
       ByVal param As TSubscriptionParam, _
       ByVal token As SubscriptionToken _
    ) 

    Parameters

    param
    The parameter passed to the Register method
    token
    The subscription token that is assigned to the subscriber
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also