NativeActivityContext.GetValue 方法

定義

多載

名稱 Description
GetValue(Variable)

回傳當前 NativeActivity 實例中指定變數的值。

GetValue<T>(Variable<T>)

回傳當前 NativeActivity 實例中指定的通用變數值。

GetValue(Variable)

回傳當前 NativeActivity 實例中指定變數的值。

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

參數

variable
Variable

在執行當前 NativeActivity 實例時,正在取得其值的變數。

傳回

指定變數的值。

適用於

GetValue<T>(Variable<T>)

回傳當前 NativeActivity 實例中指定的通用變數值。

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

類型參數

T

被檢索值的變數類型。

參數

variable
Variable<T>

在執行當前 NativeActivity 實例時,正在取得其值的泛變數。

傳回

T

指定變數的值。

適用於