Bearbeiten

Freigeben über


ExpressionServices.Convert<TResult> Method

Definition

Converts a workflow environment-aware expression to an activity tree.

public:
generic <typename TResult>
 static System::Activities::Activity<TResult> ^ Convert(System::Linq::Expressions::Expression<Func<System::Activities::ActivityContext ^, TResult> ^> ^ expression);
public static System.Activities.Activity<TResult> Convert<TResult> (System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,TResult>> expression);
static member Convert : System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext, 'Result>> -> System.Activities.Activity<'Result>
Public Shared Function Convert(Of TResult) (expression As Expression(Of Func(Of ActivityContext, TResult))) As Activity(Of TResult)

Type Parameters

TResult

The type the expression is being converted to.

Parameters

expression
Expression<Func<ActivityContext,TResult>>

The expression being converted.

Returns

The converted expression.

Remarks

For a code example of Convert, see ConvertReference.

The conversion methods in ExpressionServices are designed to work with variables and constants defined inside the workflow, or passed into the workflow via arguments.

Applies to