ערוך

שתף באמצעות


Activity<TResult>.FromVariable Method

Definition

Returns a Activity<TResult> expression that evaluates to a Variable.

Overloads

FromVariable(Variable)

Returns a Activity<TResult> expression that evaluates to the given Variable.

FromVariable(Variable<TResult>)

Returns a Activity<TResult> expression that evaluates to the given Variable<T>.

FromVariable(Variable)

Returns a Activity<TResult> expression that evaluates to the given 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)

Parameters

variable
Variable

The value for the expression.

Returns

A workflow expression that evaluates to the given variable.

Remarks

If the type of the Variable is not compatible with the type of the Activity<TResult>, then an ArgumentException is thrown.

Applies to

FromVariable(Variable<TResult>)

Returns a Activity<TResult> expression that evaluates to the given 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)

Parameters

variable
Variable<TResult>

The value for the expression.

Returns

A workflow expression that evaluates to the given variable.

Applies to