ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core.Events Namespace / SystemFavoritesChangedEvent Class / Subscribe Method
A delegate that is executed when the SystemFavoritesChangedEvent is published.
(optional) The type of reference used to maintain the delegate. false is a weak reference, true is a strong reference. (default value = false)

In This Topic
    Subscribe Method (SystemFavoritesChangedEvent)
    In This Topic
    Subscribes to the SystemFavoritesChangedEvent that is published when system favorites are changed.
    Syntax
    Public Shared Function Subscribe( _
       ByVal action As Action(Of EventArgs), _
       Optional ByVal keepSubscriberAlive As Boolean _
    ) As SubscriptionToken

    Parameters

    action
    A delegate that is executed when the SystemFavoritesChangedEvent is published.
    keepSubscriberAlive
    (optional) The type of reference used to maintain the delegate. false is a weak reference, true is a strong reference. (default value = false)

    Return Value

    A token that uniquely identifies the added subscription, and may subsequently be used with Unsubscribe.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also