NativeActivityUpdateContext.SetValue Method
Definition
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.
Assigns a value to the specified object.
Overloads
SetValue(Argument, Object) |
Assigns a value to the specified Argument. |
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 generic variable object. |
SetValue(Argument, Object)
Assigns a value to the specified Argument.
public:
void SetValue(System::Activities::Argument ^ argument, System::Object ^ value);
public void SetValue (System.Activities.Argument argument, object value);
member this.SetValue : System.Activities.Argument * obj -> unit
Public Sub SetValue (argument As Argument, value As Object)
Parameters
- argument
- Argument
The argument to receive the new value.
- value
- Object
The new value of the argument.
Applies to
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);
member 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 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);
member 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.
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.