NativeActivityUpdateContext.SetValue 方法

定义

为指定的对象赋值。Assigns a value to the specified object.

重载

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)

参数

argument
Argument

要接收新值的参数。The argument to receive the new value.

value
Object

参数的新值。The new value of the argument.

适用于

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)

参数

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.

适用于

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)

类型参数

T

变量的类型。The type of the variable.

参数

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.

适用于