ArcGIS Pro 2.7 API Reference Guide
Subscribe Method (Broadcast)

ArcGIS.Desktop.Framework.Utilities Namespace > Broadcast Class : Subscribe Method
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 10, Windows 8.1

See Also

Reference

Broadcast Class
Broadcast Members