NativeActivityContext.SetValue Método

Definição

Sobrecargas

SetValue(Variable, Object)

Atribui o objeto de valor especificado ao objeto de variável especificado.Assigns the specified value object to the specified variable object.

SetValue<T>(Variable<T>, T)

Atribui o objeto de valor genérico especificado ao objeto de variável genérico especificado.Assigns the specified generic value object to the specified generic variable object.

SetValue(Variable, Object)

Atribui o objeto de valor especificado ao objeto de variável especificado.Assigns the specified value object to the specified variable object.

public:
 void SetValue(System::Activities::Variable ^ variable, System::Object ^ value);
public void SetValue (System.Activities.Variable variable, object value);
override this.SetValue : System.Activities.Variable * obj -> unit
Public Sub SetValue (variable As Variable, value As Object)

Parâmetros

variable
Variable

Um objeto de variável sem um tipo especificado que pode ser atribuído a um objeto de valor.A variable object without a specified type that can be assigned a value object.

value
Object

Um objeto sem um tipo especificado que pode ser atribuído a um objeto de variável.An object without a specified type that can be assigned to a variable object.

Aplica-se a

SetValue<T>(Variable<T>, T)

Atribui o objeto de valor genérico especificado ao objeto de variável genérico especificado.Assigns the specified generic value object to the specified generic variable object.

public:
generic <typename T>
 void SetValue(System::Activities::Variable<T> ^ variable, T value);
public void SetValue<T> (System.Activities.Variable<T> variable, T value);
override this.SetValue : System.Activities.Variable<'T> * 'T -> unit
Public Sub SetValue(Of T) (variable As Variable(Of T), value As T)

Parâmetros de tipo

T

O tipo de variable e value .The type of the variable and value.

Parâmetros

variable
Variable<T>

Um objeto de variável com um tipo especificado que pode ser atribuído a um objeto de valor.A variable object with a specified type that can be assigned a value object.

value
T

Um objeto com um tipo especificado que pode ser atribuído a um objeto de variável.An object with a specified type that can be assigned to a variable object.

Aplica-se a