InArgument<T> Constructors

Definition

Initializes a new instance of the InArgument<T> class.

Overloads

InArgument<T>()

Initializes a new instance of the InArgument<T> class using default values.

InArgument<T>(Activity<T>)

Initializes a new instance of the InArgument<T> class using the specified Activity<TResult>.

InArgument<T>(DelegateArgument)

Initializes a new instance of the InArgument<T> class using the specified DelegateArgument.

InArgument<T>(Variable)

Initializes a new instance of the InArgument<T> class using the specified Variable.

InArgument<T>(Expression<Func<ActivityContext,T>>)

Initializes a new instance of the InArgument<T> class using the specified expression.

InArgument<T>(T)

Initializes a new instance of the InArgument<T> class using the specified value.

InArgument<T>()

Initializes a new instance of the InArgument<T> class using default values.

C#
public InArgument();

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

InArgument<T>(Activity<T>)

Initializes a new instance of the InArgument<T> class using the specified Activity<TResult>.

C#
public InArgument(System.Activities.Activity<T> expression);

Parameters

expression
Activity<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

InArgument<T>(DelegateArgument)

Initializes a new instance of the InArgument<T> class using the specified DelegateArgument.

C#
public InArgument(System.Activities.DelegateArgument delegateArgument);

Parameters

delegateArgument
DelegateArgument

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

InArgument<T>(Variable)

Initializes a new instance of the InArgument<T> class using the specified Variable.

C#
public InArgument(System.Activities.Variable variable);

Parameters

variable
Variable

The data that is passed through this 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

InArgument<T>(Expression<Func<ActivityContext,T>>)

Initializes a new instance of the InArgument<T> class using the specified expression.

C#
public InArgument(System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,T>> expression);

Parameters

expression
Expression<Func<ActivityContext,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

InArgument<T>(T)

Initializes a new instance of the InArgument<T> class using the specified value.

C#
public InArgument(T constValue);

Parameters

constValue
T

The value of the argument.

Remarks

The constValue parameter is shared across all workflow instances using this workflow definition. For example, if a List<string> was provided as a constValue and three instances were created then all three instances would be accessing the same List<string>.

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