.NET Framework Class Library
CorrelationToken.UnsubscribeFromCorrelationTokenInitializedEvent Method
Unsubscribes the CorrelationToken from the initialized event.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Syntax
Visual Basic
Public Sub UnsubscribeFromCorrelationTokenInitializedEvent ( _ activity As Activity, _ dataChangeListener As IActivityEventListener(Of CorrelationTokenEventArgs) _ )
C#
public void UnsubscribeFromCorrelationTokenInitializedEvent( Activity activity, IActivityEventListener<CorrelationTokenEventArgs> dataChangeListener )
Visual C++
public: void UnsubscribeFromCorrelationTokenInitializedEvent( Activity^ activity, IActivityEventListener<CorrelationTokenEventArgs^>^ dataChangeListener )
F#
member UnsubscribeFromCorrelationTokenInitializedEvent : 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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