Redigera

Dela via


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.

public:
 void SetValue(System::Activities::Argument ^ argument, System::Object ^ value);
public void SetValue (System.Activities.Argument argument, object value);
member this.SetValue : System.Activities.Argument * obj -> unit
Public Sub SetValue (argument As Argument, value As Object)

Parameters

argument
Argument

The argument to receive the new value.

value
Object

The new value of the argument.

Applies to

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

Assigns a value to the specified InArgument<T>.

public:
generic <typename T>
 void SetValue(System::Activities::InArgument<T> ^ argument, T value);
public void SetValue<T> (System.Activities.InArgument<T> argument, T value);
member this.SetValue : System.Activities.InArgument<'T> * 'T -> unit
Public Sub SetValue(Of T) (argument As InArgument(Of T), value As T)

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

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

Assigns a value to the specified InOutArgument<T>.

public:
generic <typename T>
 void SetValue(System::Activities::InOutArgument<T> ^ argument, T value);
public void SetValue<T> (System.Activities.InOutArgument<T> argument, T value);
member this.SetValue : System.Activities.InOutArgument<'T> * 'T -> unit
Public Sub SetValue(Of T) (argument As InOutArgument(Of T), value As T)

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

SetValue<T>(LocationReference, T)

Assigns a value to the specified LocationReference.

public:
generic <typename T>
 void SetValue(System::Activities::LocationReference ^ locationReference, T value);
public void SetValue<T> (System.Activities.LocationReference locationReference, T value);
member this.SetValue : System.Activities.LocationReference * 'T -> unit
Public Sub SetValue(Of T) (locationReference As LocationReference, value As T)

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

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

Assigns a value to the specified OutArgument<T>.

public:
generic <typename T>
 void SetValue(System::Activities::OutArgument<T> ^ argument, T value);
public void SetValue<T> (System.Activities.OutArgument<T> argument, T value);
member this.SetValue : System.Activities.OutArgument<'T> * 'T -> unit
Public Sub SetValue(Of T) (argument As OutArgument(Of T), value As T)

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