NativeActivityUpdateContext.GetValue 方法

定义

获取指定对象的值。Gets the value of the specified object.

重载

GetValue(RuntimeArgument)

获取指定 RuntimeArgument 的值。Gets the value of the specified RuntimeArgument.

GetValue(Variable)

获取当前 NativeActivity 实例中指定变量的值。Gets the value of the specified variable in the current NativeActivity instance.

GetValue(Argument)

获取指定“参数”的值。Gets the value of the specified Argument.

GetValue<T>(Variable<T>)

返回当前 NativeActivity 实例中指定泛型变量的值。Returns the value of the specified generic variable in the current NativeActivity instance.

GetValue(RuntimeArgument)

获取指定 RuntimeArgument 的值。Gets the value of the specified RuntimeArgument.

public:
 System::Object ^ GetValue(System::Activities::RuntimeArgument ^ runtimeArgument);
public object GetValue (System.Activities.RuntimeArgument runtimeArgument);
member this.GetValue : System.Activities.RuntimeArgument -> obj
Public Function GetValue (runtimeArgument As RuntimeArgument) As Object

参数

runtimeArgument
RuntimeArgument

要检查的参数。The argument to inspect.

返回

Object

指定的 RuntimeArgument 的值。the value of the specified RuntimeArgument.

适用于

GetValue(Variable)

获取当前 NativeActivity 实例中指定变量的值。Gets the value of the specified variable in the current NativeActivity instance.

public:
 System::Object ^ GetValue(System::Activities::Variable ^ variable);
public object GetValue (System.Activities.Variable variable);
member this.GetValue : System.Activities.Variable -> obj
Public Function GetValue (variable As Variable) As Object

参数

variable
Variable

在当前 NativeActivity 实例的执行过程中要检索其值的变量。The variable whose value is being retrieved during execution of the current NativeActivity instance.

返回

Object

当前 NativeActivity 实例中指定变量的值。The value of the specified variable in the current NativeActivity instance.

适用于

GetValue(Argument)

获取指定“参数”的值。Gets the value of the specified Argument.

public:
 System::Object ^ GetValue(System::Activities::Argument ^ argument);
public object GetValue (System.Activities.Argument argument);
member this.GetValue : System.Activities.Argument -> obj
Public Function GetValue (argument As Argument) As Object

参数

argument
Argument

要检查的参数。The argument to inspect.

返回

Object

指定参数的值。The value of the specified Argument.

适用于

GetValue<T>(Variable<T>)

返回当前 NativeActivity 实例中指定泛型变量的值。Returns the value of the specified generic variable in the current NativeActivity instance.

public:
generic <typename T>
 T GetValue(System::Activities::Variable<T> ^ variable);
public T GetValue<T> (System.Activities.Variable<T> variable);
member this.GetValue : System.Activities.Variable<'T> -> 'T
Public Function GetValue(Of T) (variable As Variable(Of T)) As T

类型参数

T

要检索其值的变量的类型。The type of the variable whose value is being retrieved.

参数

variable
Variable<T>

值在执行当前 NativeActivity 实例期间需检索的泛型变量。The generic variable whose value is being retrieved during execution of the current NativeActivity instance.

返回

T

当前 NativeActivity 实例中指定泛型变量的值。The value of the specified generic variable in the current NativeActivity instance.

适用于