Activity<TResult>::FromVariable Method (Variable^)

.NET Framework (current version)
 

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

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public:
static Activity<TResult>^ FromVariable(
	Variable^ variable
)

Parameters

variable
Type: System.Activities::Variable^

The value for the expression.

Return Value

Type: System.Activities::Activity<TResult>^

A workflow expression that evaluates to the given variable.

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

.NET Framework
Available since 4.0
Return to top
Show: