ActivityContext.SetValue Method

Definition

Assigns a value to the specified argument.

Overloads

SetValue(Argument, Object)

Assigns a value to the specified Argument.

SetValue<T>(InArgument<T>, T)

Assigns a value to the specified InArgument<T>.

SetValue<T>(InOutArgument<T>, T)

Assigns a value to the specified InOutArgument<T>.

SetValue<T>(LocationReference, T)

Assigns a value to the specified LocationReference.

SetValue<T>(OutArgument<T>, T)

Assigns a value to the specified OutArgument<T>.

SetValue(Argument, Object)

Assigns a value to the specified Argument.

C#
public void SetValue(System.Activities.Argument argument, object value);

Parameters

argument
Argument

The argument to receive the new value.

value
Object

The new 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

SetValue<T>(InArgument<T>, T)

Assigns a value to the specified InArgument<T>.

C#
public void SetValue<T>(System.Activities.InArgument<T> argument, T value);

Type Parameters

T

The type of the argument.

Parameters

argument
InArgument<T>

The argument to receive the new value.

value
T

The new 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

SetValue<T>(InOutArgument<T>, T)

Assigns a value to the specified InOutArgument<T>.

C#
public void SetValue<T>(System.Activities.InOutArgument<T> argument, T value);

Type Parameters

T

The type of the argument.

Parameters

argument
InOutArgument<T>

The argument to receive the new value.

value
T

The new 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

SetValue<T>(LocationReference, T)

Assigns a value to the specified LocationReference.

C#
public void SetValue<T>(System.Activities.LocationReference locationReference, T value);

Type Parameters

T

The type of the location.

Parameters

locationReference
LocationReference

The referenced location to receive the new value.

value
T

The new 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

SetValue<T>(OutArgument<T>, T)

Assigns a value to the specified OutArgument<T>.

C#
public void SetValue<T>(System.Activities.OutArgument<T> argument, T value);

Type Parameters

T

The type of the argument.

Parameters

argument
OutArgument<T>

The argument to receive the new value.

value
T

The new 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