CorrelationToken.SubscribeForCorrelationTokenInitializedEvent Method (System.Workflow.Runtime)

Switch View :
ScriptFree
.NET Framework Class Library
CorrelationToken.SubscribeForCorrelationTokenInitializedEvent Method

Subscribes the CorrelationToken to the initialized event.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Syntax

Visual Basic
Public Sub SubscribeForCorrelationTokenInitializedEvent ( _
	activity As Activity, _
	dataChangeListener As IActivityEventListener(Of CorrelationTokenEventArgs) _
)
C#
public void SubscribeForCorrelationTokenInitializedEvent(
	Activity activity,
	IActivityEventListener<CorrelationTokenEventArgs> dataChangeListener
)
Visual C++
public:
void SubscribeForCorrelationTokenInitializedEvent(
	Activity^ activity, 
	IActivityEventListener<CorrelationTokenEventArgs^>^ dataChangeListener
)
F#
member SubscribeForCorrelationTokenInitializedEvent : 
        activity:Activity * 
        dataChangeListener:IActivityEventListener<CorrelationTokenEventArgs> -> unit 

Parameters

activity
Type: System.Workflow.ComponentModel.Activity
The name of the Activity that owns the correlation token.
dataChangeListener
Type: System.Workflow.ComponentModel.IActivityEventListener<CorrelationTokenEventArgs>
The CorrelationTokenEventArgs that is listening for a change in event data.
Exceptions

Exception Condition
ArgumentNullException

activity or dataChangeListener are null references (Nothing in Visual Basic).

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0
.NET Framework Security

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference