ActivityContext.GetValue Method

Definition

Gets the value of an argument.

Overloads

GetValue(Argument)

Gets the value of the specified Argument.

GetValue(RuntimeArgument)

Gets the value of the specified RuntimeArgument.

GetValue<T>(InArgument<T>)

Gets the value of the specified InArgument<T>.

GetValue<T>(InOutArgument<T>)

Gets the value of the specified InOutArgument<T>.

GetValue<T>(LocationReference)

Gets the value at the specified LocationReference.

GetValue<T>(OutArgument<T>)

Gets the value of the specified OutArgument<T>.

GetValue(Argument)

Gets the value of the specified Argument.

C#
public object GetValue(System.Activities.Argument argument);

Parameters

argument
Argument

The argument to inspect.

Returns

The value of the argument.

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(RuntimeArgument)

Gets the value of the specified RuntimeArgument.

C#
public object GetValue(System.Activities.RuntimeArgument runtimeArgument);

Parameters

runtimeArgument
RuntimeArgument

The argument to inspect.

Returns

The value of the argument.

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>(InArgument<T>)

Gets the value of the specified InArgument<T>.

C#
public T GetValue<T>(System.Activities.InArgument<T> argument);

Type Parameters

T

The type of the argument.

Parameters

argument
InArgument<T>

The argument to inspect.

Returns

T

The value of the argument.

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>(InOutArgument<T>)

Gets the value of the specified InOutArgument<T>.

C#
public T GetValue<T>(System.Activities.InOutArgument<T> argument);

Type Parameters

T

The type of the argument.

Parameters

argument
InOutArgument<T>

The argument to inspect.

Returns

T

The value of the argument.

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>(LocationReference)

Gets the value at the specified LocationReference.

C#
public T GetValue<T>(System.Activities.LocationReference locationReference);

Type Parameters

T

The type of the value.

Parameters

locationReference
LocationReference

The referenced location to inspect.

Returns

T

The value of the referenced location.

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>(OutArgument<T>)

Gets the value of the specified OutArgument<T>.

C#
public T GetValue<T>(System.Activities.OutArgument<T> argument);

Type Parameters

T

The type of the argument.

Parameters

argument
OutArgument<T>

The argument to inspect.

Returns

T

The value of the argument.

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