NativeActivityContext.SetValue Method

Definition

Overloads

SetValue(Variable, Object)

Assigns the specified value object to the specified variable object.

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

Assigns the specified generic value object to the specified generic variable object.

SetValue(Variable, Object)

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)

Parameters

variable
Variable

A variable object without a specified type that can be assigned a value object.

value
Object

An object without a specified type that can be assigned to a variable object.

Applies to

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

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)

Type Parameters

T

The type of the variable and value.

Parameters

variable
Variable<T>

A variable object with a specified type that can be assigned a value object.

value
T

An object with a specified type that can be assigned to a variable object.

Applies to