The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CorrelationTokenCollection::GetCorrelationToken Method (Activity^, String^, String^)
.NET Framework (current version)
Gets the specified CorrelationToken.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
public: static CorrelationToken^ GetCorrelationToken( Activity^ activity, String^ correlationTokenName, String^ ownerActivityName )
Parameters
- activity
-
Type:
System.Workflow.ComponentModel::Activity^
The Activity associated with the CorrelationTokenCollection.
- correlationTokenName
-
Type:
System::String^
The name of the CorrelationToken.
- ownerActivityName
-
Type:
System::String^
The name of the activity associated with the CorrelationTokenCollection.
Return Value
Type: System.Workflow.Runtime::CorrelationToken^The CorrelationToken with the specified correlationTokenName.
| Exception | Condition |
|---|---|
| ArgumentNullException | activity, correlationTokenName, or ownerActivityName are null references (Nothing in Visual Basic). |
.NET Framework
Available since 3.0
Available since 3.0
Show: