Uređivanje

Dijeli putem


CorrelationTokenCollection.GetCorrelationToken Method

Definition

Gets the specified CorrelationToken.

public:
 static System::Workflow::Runtime::CorrelationToken ^ GetCorrelationToken(System::Workflow::ComponentModel::Activity ^ activity, System::String ^ correlationTokenName, System::String ^ ownerActivityName);
public static System.Workflow.Runtime.CorrelationToken GetCorrelationToken (System.Workflow.ComponentModel.Activity activity, string correlationTokenName, string ownerActivityName);
static member GetCorrelationToken : System.Workflow.ComponentModel.Activity * string * string -> System.Workflow.Runtime.CorrelationToken
Public Shared Function GetCorrelationToken (activity As Activity, correlationTokenName As String, ownerActivityName As String) As CorrelationToken

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