ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework.Utilities Namespace / Broadcast Class / Subscribe Method

In This Topic
    Subscribe Method (Broadcast)
    In This Topic
    Subscribes to the channel identified by the channel argument. The specified action will be invoked when a message is sent to this channel.
    Syntax
    public static ulong Subscribe( 
       Guid channel,
       Action<int,string> action
    )
    Public Shared Function Subscribe( _
       ByVal channel As Guid, _
       ByVal action As Action(Of Integer,String) _
    ) As ULong

    Parameters

    channel
    action

    Return Value

    A cookie identifying the subscription. This can be used to unsubscribe.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also