共用方式為


Activity<TResult>.FromVariable 方法

定義

傳回會評估至 Activity<TResult>Variable 運算式。

多載

FromVariable(Variable)

傳回會評估至指定 Activity<TResult>Variable 運算式。

FromVariable(Variable<TResult>)

傳回會評估至指定 Activity<TResult>Variable<T> 運算式。

FromVariable(Variable)

傳回會評估至指定 Activity<TResult>Variable 運算式。

public:
 static System::Activities::Activity<TResult> ^ FromVariable(System::Activities::Variable ^ variable);
public static System.Activities.Activity<TResult> FromVariable (System.Activities.Variable variable);
static member FromVariable : System.Activities.Variable -> System.Activities.Activity<'Result>
Public Shared Function FromVariable (variable As Variable) As Activity(Of TResult)

參數

variable
Variable

運算式的值。

傳回

會評估至指定變數的工作流程運算式。

備註

如果 Variable 的型別與 Activity<TResult> 的型別不相容,則會擲回 ArgumentException

適用於

FromVariable(Variable<TResult>)

傳回會評估至指定 Activity<TResult>Variable<T> 運算式。

public:
 static System::Activities::Activity<TResult> ^ FromVariable(System::Activities::Variable<TResult> ^ variable);
public static System.Activities.Activity<TResult> FromVariable (System.Activities.Variable<TResult> variable);
static member FromVariable : System.Activities.Variable<'Result> -> System.Activities.Activity<'Result>
Public Shared Function FromVariable (variable As Variable(Of TResult)) As Activity(Of TResult)

參數

variable
Variable<TResult>

運算式的值。

傳回

會評估至指定變數的工作流程運算式。

適用於