共用方式為


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

與 關聯的活動。

correlationTokenName
String

CorrelationToken 的名稱。

ownerActivityName
String

CorrelationTokenCollection 關聯的活動名稱。

傳回

具有指定 CorrelationToken. 的 correlationTokenName

例外狀況

activitycorrelationTokenNameownerActivityName 是 null 參考 (Visual Basic 中為 Nothing)。

適用於