NativeActivityContext.GetValue Method

Definition

Overloads

GetValue(Variable)

Returns the value of the specified variable in the current NativeActivity instance.

GetValue<T>(Variable<T>)

Returns the value of the specified generic variable in the current NativeActivity instance.

GetValue(Variable)

Returns the value of the specified variable in the current NativeActivity instance.

C#
public object GetValue(System.Activities.Variable variable);

Parameters

variable
Variable

The variable whose value is being retrieved during execution of the current NativeActivity instance.

Returns

The value of the specified variable.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetValue<T>(Variable<T>)

Returns the value of the specified generic variable in the current NativeActivity instance.

C#
public T GetValue<T>(System.Activities.Variable<T> variable);

Type Parameters

T

The type of the variable whose value is being retrieved.

Parameters

variable
Variable<T>

The generic variable whose value is being retrieved during execution of the current NativeActivity instance.

Returns

T

The value of the specified variable.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1