CorrelationTokenCollection.GetCorrelationToken Method

Definition

Gets the specified CorrelationToken.

public static System.Workflow.Runtime.CorrelationToken GetCorrelationToken (System.Workflow.ComponentModel.Activity activity, string correlationTokenName, string ownerActivityName);

Parameters

activity
Activity

The Activity associated with the CorrelationTokenCollection.

correlationTokenName
String

The name of the CorrelationToken.

ownerActivityName
String

The name of the activity associated with the CorrelationTokenCollection.

Returns

The CorrelationToken with the specified correlationTokenName.

Exceptions

activity, correlationTokenName, or ownerActivityName are null references (Nothing in Visual Basic).

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1