RuntimeArgument Constructors

Definition

Initializes a new instance of the RuntimeArgument class.

Overloads

RuntimeArgument(String, Type, ArgumentDirection)

Initializes a new instance of the RuntimeArgument class using a name, data type, and argument direction.

RuntimeArgument(String, Type, ArgumentDirection, Boolean)

Initializes a new instance of the RuntimeArgument class using a name, data type, argument direction, and a value that indicates whether the RuntimeArgument is required to be bound to a value.

RuntimeArgument(String, Type, ArgumentDirection, List<String>)

Initializes a new instance of the RuntimeArgument class using a name, data type, argument direction, and a list of overload group names.

RuntimeArgument(String, Type, ArgumentDirection, Boolean, List<String>)

Initializes a new instance of the RuntimeArgument class with a name, data type, argument direction, whether the RuntimeArgument is required to be bound to a value, and a list of overload group names.

RuntimeArgument(String, Type, ArgumentDirection)

Initializes a new instance of the RuntimeArgument class using a name, data type, and argument direction.

C#
public RuntimeArgument(string name, Type argumentType, System.Activities.ArgumentDirection direction);

Parameters

name
String

The name of the RuntimeArgument.

argumentType
Type

The type of the RuntimeArgument.

direction
ArgumentDirection

The direction of data flow through an 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

RuntimeArgument(String, Type, ArgumentDirection, Boolean)

Initializes a new instance of the RuntimeArgument class using a name, data type, argument direction, and a value that indicates whether the RuntimeArgument is required to be bound to a value.

C#
public RuntimeArgument(string name, Type argumentType, System.Activities.ArgumentDirection direction, bool isRequired);

Parameters

name
String

The name of the RuntimeArgument.

argumentType
Type

The data type of the RuntimeArgument.

direction
ArgumentDirection

The direction of data flow through an argument.

isRequired
Boolean

true to indicate that the RuntimeArgument is required to be bound to a value; otherwise false.

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

RuntimeArgument(String, Type, ArgumentDirection, List<String>)

Initializes a new instance of the RuntimeArgument class using a name, data type, argument direction, and a list of overload group names.

C#
public RuntimeArgument(string name, Type argumentType, System.Activities.ArgumentDirection direction, System.Collections.Generic.List<string> overloadGroupNames);

Parameters

name
String

The name of the RuntimeArgument.

argumentType
Type

The data type of the RuntimeArgument.

direction
ArgumentDirection

The direction of data flow through an argument.

overloadGroupNames
List<String>

The overload groups that apply to this RuntimeArgument.

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

RuntimeArgument(String, Type, ArgumentDirection, Boolean, List<String>)

Initializes a new instance of the RuntimeArgument class with a name, data type, argument direction, whether the RuntimeArgument is required to be bound to a value, and a list of overload group names.

C#
public RuntimeArgument(string name, Type argumentType, System.Activities.ArgumentDirection direction, bool isRequired, System.Collections.Generic.List<string> overloadGroupNames);

Parameters

name
String

The name of the RuntimeArgument.

argumentType
Type

The data type of the RuntimeArgument.

direction
ArgumentDirection

The direction of data flow through an argument.

isRequired
Boolean

true to indicate that the RuntimeArgument is required to be bound to a value; otherwise false.

overloadGroupNames
List<String>

The names of the overload groups that apply to this RuntimeArgument.

Remarks

Required arguments that are unbound result in validation errors that are displayed at design time.

The RuntimeArgument.IsRequired is set to true if the System.Activities.RequiredArgumentAttribute is applied to an argument.

Overload groups can be set on arguments through the OverloadGroupAttribute.

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