Windows apps
Collapse the table of content
Expand the table of content
Information
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^)

 

Gets the specified CorrelationToken.

Namespace:   System.Workflow.Runtime
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
Return to top
Show:
© 2017 Microsoft