Activity<TResult>.Implicit 运算符

定义

重载

Implicit(Variable to Activity<TResult>)

返回计算结果为给定的 Activity<TResult>Variable 表达式。

Implicit(Variable<TResult> to Activity<TResult>)

返回计算结果为给定的 Activity<TResult>Variable<T> 表达式。

Implicit(TResult to Activity<TResult>)

返回计算结果为给定值的 Activity<TResult> 表达式。

Implicit(Variable to Activity<TResult>)

返回计算结果为给定的 Activity<TResult>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)

参数

variable
Variable

表达式的值。

返回

计算结果为给定变量的工作流表达式。

注解

如果 Variable 的类型与 Activity<TResult> 的类型不兼容,则会引发 ArgumentException

适用于

Implicit(Variable<TResult> to Activity<TResult>)

返回计算结果为给定的 Activity<TResult>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)

参数

variable
Variable<TResult>

表达式的值。

返回

计算结果为给定变量的工作流表达式。

适用于

Implicit(TResult to Activity<TResult>)

返回计算结果为给定值的 Activity<TResult> 表达式。

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)

参数

constValue
TResult

用于创建表达式的值。

返回

计算结果为给定值的工作流表达式。

适用于