Activity<TResult>.FromVariable Método

Definição

Retorna uma expressão de Activity<TResult> que é avaliada como uma Variable.Returns a Activity<TResult> expression that evaluates to a Variable.

Sobrecargas

FromVariable(Variable)

Retorna uma expressão de Activity<TResult> que é avaliada como a Variable fornecida.Returns a Activity<TResult> expression that evaluates to the given Variable.

FromVariable(Variable<TResult>)

Retorna uma expressão de Activity<TResult> que é avaliada como a Variable<T> fornecida.Returns a Activity<TResult> expression that evaluates to the given Variable<T>.

FromVariable(Variable)

Retorna uma expressão de Activity<TResult> que é avaliada como a Variable fornecida.Returns a Activity<TResult> expression that evaluates to the given Variable.

public:
 static System::Activities::Activity<TResult> ^ FromVariable(System::Activities::Variable ^ variable);
public static System.Activities.Activity<TResult> FromVariable (System.Activities.Variable variable);
static member FromVariable : System.Activities.Variable -> System.Activities.Activity<'Result>
Public Shared Function FromVariable (variable As Variable) As Activity(Of TResult)

Parâmetros

variable
Variable

O valor da expressão.The value for the expression.

Retornos

Activity<TResult>

Uma expressão de fluxo de trabalho que é avaliada como a variável fornecida.A workflow expression that evaluates to the given variable.

Comentários

Se o tipo de Variable não for compatível com o tipo de Activity<TResult> , um ArgumentException será lançado.If the type of the Variable is not compatible with the type of the Activity<TResult>, then an ArgumentException is thrown.

Aplica-se a

FromVariable(Variable<TResult>)

Retorna uma expressão de Activity<TResult> que é avaliada como a Variable<T> fornecida.Returns a Activity<TResult> expression that evaluates to the given Variable<T>.

public:
 static System::Activities::Activity<TResult> ^ FromVariable(System::Activities::Variable<TResult> ^ variable);
public static System.Activities.Activity<TResult> FromVariable (System.Activities.Variable<TResult> variable);
static member FromVariable : System.Activities.Variable<'Result> -> System.Activities.Activity<'Result>
Public Shared Function FromVariable (variable As Variable(Of TResult)) As Activity(Of TResult)

Parâmetros

variable
Variable<TResult>

O valor da expressão.The value for the expression.

Retornos

Activity<TResult>

Uma expressão de fluxo de trabalho que é avaliada como a variável fornecida.A workflow expression that evaluates to the given variable.

Aplica-se a