Intersoft ClientUI Documentation
Subscribe(Action<TPayload>) Method



The delegate that gets executed when the event is published.
Subscribes a delegate to an event that will be published on the ThreadOption.PublisherThread. DelegateEvent<TPayload> will maintain a to the target of the supplied action delegate.
Syntax
Public Overloads Function Subscribe( _
   ByVal action As Action(Of TPayload) _
) As SubscriptionToken
Dim instance As DelegateEvent(Of TPayload)
Dim action As Action(Of TPayload)
Dim value As SubscriptionToken
 
value = instance.Subscribe(action)
public SubscriptionToken Subscribe( 
   Action<TPayload> action
)
public:
SubscriptionToken^ Subscribe( 
   Action<TPayload^>^ action
) 

Parameters

action
The delegate that gets executed when the event is published.

Return Value

A SubscriptionToken that uniquely identifies the added subscription.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DelegateEvent<TPayload> Class
DelegateEvent<TPayload> Members
Overload List
System.WeakReference

Send Feedback