Condividi tramite


CorrelationTokenCollection.GetCorrelationToken Metodo

Definizione

Ottiene l'oggetto CorrelationToken specificato.

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

Parametri

activity
Activity

Attività associata all'oggetto CorrelationTokenCollection.

correlationTokenName
String

Nome di CorrelationToken.

ownerActivityName
String

Nome dell'attività associata a CorrelationTokenCollection.

Restituisce

CorrelationToken

L'oggetto CorrelationToken con la proprietà correlationTokenName specificata.

Eccezioni

activity, correlationTokenName o ownerActivityName sono riferimenti null (Nothing in Visual Basic).

Si applica a