CorrelationTokenCollection.GetCorrelationToken 方法

定义

获取指定的 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

参数

activity
Activity

CorrelationTokenCollection 关联的活动。

correlationTokenName
String

CorrelationToken 的名称。

ownerActivityName
String

CorrelationTokenCollection 关联的活动的名称。

返回

CorrelationToken

具有指定 CorrelationTokencorrelationTokenName

例外

activity, correlationTokenNameownerActivityName 为空引用(在 Visual Basic 中为 Nothing)。

适用于