ExpressionServices.TryConvertReference<TResult> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a reference to a workflow environment-aware expression to an activity tree.
public:
generic <typename TResult>
static bool TryConvertReference(System::Linq::Expressions::Expression<Func<System::Activities::ActivityContext ^, TResult> ^> ^ expression, [Runtime::InteropServices::Out] System::Activities::Activity<System::Activities::Location<TResult> ^> ^ % result);
public static bool TryConvertReference<TResult>(System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,TResult>> expression, out System.Activities.Activity<System.Activities.Location<TResult>> result);
static member TryConvertReference : System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext, 'Result>> * Activity -> bool
Public Shared Function TryConvertReference(Of TResult) (expression As Expression(Of Func(Of ActivityContext, TResult)), ByRef result As Activity(Of Location(Of TResult))) As Boolean
- TResult
The type the expression is being converted to.
- expression
- Expression<Func<ActivityContext,TResult>>
The expression being converted.
true
if the expression can be converted; otherwise, false
.
The conversion methods in ExpressionServices are designed to work with variables and constants defined inside the workflow, or passed into the workflow via arguments.
Proizvod | Verzije |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: