ArcGIS Pro 2.9 API Reference Guide
Register Method (RegisteredPresentationEvent<TSubscriptionParam,TPayload>)

ArcGIS.Core.Events Namespace > RegisteredPresentationEvent<TSubscriptionParam,TPayload> Class : Register Method
The type of the parameter passed to subscribe
The delegate that gets executed when the event is published.
Set to true to maintain a strong reference
Subscribes a delegate to an event that will be published on the publisher thread. RegisteredPresentationEvent<TSubscriptionParam,TPayload> will maintain a to the target of the supplied action delegate.
Syntax

Parameters

param
The type of the parameter passed to subscribe
action
The delegate that gets executed when the event is published.
keepSubscriberAlive
Set to true to maintain a strong reference

Return Value

A SubscriptionToken that uniquely identifies the added subscription.
Remarks
The RegisteredPresentationEvent collection is thread-safe.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

RegisteredPresentationEvent<TSubscriptionParam,TPayload> Class
RegisteredPresentationEvent<TSubscriptionParam,TPayload> Members
System.WeakReference