Compartilhar via


CorrelationTokenCollection.GetCorrelationToken Método

Definição

Obtém o objeto CorrelationToken especificado.

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

Parâmetros

activity
Activity

A Atividade associada a CorrelationTokenCollection.

correlationTokenName
String

O nome do CorrelationToken.

ownerActivityName
String

O nome da atividade associada a CorrelationTokenCollection.

Retornos

O CorrelationToken com o correlationTokenName especificado.

Exceções

activity, correlationTokenName ou ownerActivityName são referências nulas (Nothing no Visual Basic).

Aplica-se a