Activity<TResult>.Implicit Operator
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.
Implicit(Variable to Activity<TResult>) |
Returns a Activity<TResult> expression that evaluates to the given Variable. |
Implicit(Variable<TResult> to Activity<TResult>) |
Returns a Activity<TResult> expression that evaluates to the given Variable<T>. |
Implicit(TResult to Activity<TResult>) |
Returns a Activity<TResult> expression that evaluates to the given value. |
Returns a Activity<TResult> expression that evaluates to the given Variable.
public:
static operator System::Activities::Activity<TResult> ^(System::Activities::Variable ^ variable);
public static implicit operator System.Activities.Activity<TResult> (System.Activities.Variable variable);
static member op_Implicit : System.Activities.Variable -> System.Activities.Activity<'Result>
Public Shared Widening Operator CType (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
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.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 |
Returns a Activity<TResult> expression that evaluates to the given Variable<T>.
public:
static operator System::Activities::Activity<TResult> ^(System::Activities::Variable<TResult> ^ variable);
public static implicit operator System.Activities.Activity<TResult> (System.Activities.Variable<TResult> variable);
static member op_Implicit : System.Activities.Variable<'Result> -> System.Activities.Activity<'Result>
Public Shared Widening Operator CType (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
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.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 |
Returns a Activity<TResult> expression that evaluates to the given value.
public:
static operator System::Activities::Activity<TResult> ^(TResult constValue);
public static implicit operator System.Activities.Activity<TResult> (TResult constValue);
static member op_Implicit : 'Result -> System.Activities.Activity<'Result>
Public Shared Widening Operator CType (constValue As TResult) As Activity(Of TResult)
Parameters
- constValue
- TResult
The value used to create the expression.
Returns
A workflow expression that evaluates to the given value.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: