Share via


RuntimeArgument 构造函数

定义

初始化 RuntimeArgument 类的新实例。

重载

RuntimeArgument(String, Type, ArgumentDirection)

使用名称、数据类型和自变量方向初始化 RuntimeArgument 类的新实例。

RuntimeArgument(String, Type, ArgumentDirection, Boolean)

使用名称、数据类型、参数方向以及一个指示是否需要将 RuntimeArgument 绑定到一个值的值初始化 RuntimeArgument 类的新实例。

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

使用名称、数据类型、自变量方向以及重载组名称的列表初始化 RuntimeArgument 类的新实例。

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

使用名称、数据类型、自变量方向、是否需要将 RuntimeArgument 绑定到一个值以及重载组名称的列表初始化 RuntimeArgument 类的新实例。

RuntimeArgument(String, Type, ArgumentDirection)

使用名称、数据类型和自变量方向初始化 RuntimeArgument 类的新实例。

public:
 RuntimeArgument(System::String ^ name, Type ^ argumentType, System::Activities::ArgumentDirection direction);
public RuntimeArgument (string name, Type argumentType, System.Activities.ArgumentDirection direction);
new System.Activities.RuntimeArgument : string * Type * System.Activities.ArgumentDirection -> System.Activities.RuntimeArgument
Public Sub New (name As String, argumentType As Type, direction As ArgumentDirection)

参数

name
String

RuntimeArgument 的名称。

argumentType
Type

RuntimeArgument 的类型。

direction
ArgumentDirection

参数的数据流方向。

适用于

RuntimeArgument(String, Type, ArgumentDirection, Boolean)

使用名称、数据类型、参数方向以及一个指示是否需要将 RuntimeArgument 绑定到一个值的值初始化 RuntimeArgument 类的新实例。

public:
 RuntimeArgument(System::String ^ name, Type ^ argumentType, System::Activities::ArgumentDirection direction, bool isRequired);
public RuntimeArgument (string name, Type argumentType, System.Activities.ArgumentDirection direction, bool isRequired);
new System.Activities.RuntimeArgument : string * Type * System.Activities.ArgumentDirection * bool -> System.Activities.RuntimeArgument
Public Sub New (name As String, argumentType As Type, direction As ArgumentDirection, isRequired As Boolean)

参数

name
String

RuntimeArgument 的名称。

argumentType
Type

RuntimeArgument 的数据类型。

direction
ArgumentDirection

参数的数据流方向。

isRequired
Boolean

如果指示需要将 RuntimeArgument 绑定到一个值;则为 true否则为 false

适用于

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

使用名称、数据类型、自变量方向以及重载组名称的列表初始化 RuntimeArgument 类的新实例。

public:
 RuntimeArgument(System::String ^ name, Type ^ argumentType, System::Activities::ArgumentDirection direction, System::Collections::Generic::List<System::String ^> ^ overloadGroupNames);
public RuntimeArgument (string name, Type argumentType, System.Activities.ArgumentDirection direction, System.Collections.Generic.List<string> overloadGroupNames);
new System.Activities.RuntimeArgument : string * Type * System.Activities.ArgumentDirection * System.Collections.Generic.List<string> -> System.Activities.RuntimeArgument
Public Sub New (name As String, argumentType As Type, direction As ArgumentDirection, overloadGroupNames As List(Of String))

参数

name
String

RuntimeArgument 的名称。

argumentType
Type

RuntimeArgument 的数据类型。

direction
ArgumentDirection

参数的数据流方向。

overloadGroupNames
List<String>

应用于此 RuntimeArgument 的重载组。

适用于

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

使用名称、数据类型、自变量方向、是否需要将 RuntimeArgument 绑定到一个值以及重载组名称的列表初始化 RuntimeArgument 类的新实例。

public:
 RuntimeArgument(System::String ^ name, Type ^ argumentType, System::Activities::ArgumentDirection direction, bool isRequired, System::Collections::Generic::List<System::String ^> ^ overloadGroupNames);
public RuntimeArgument (string name, Type argumentType, System.Activities.ArgumentDirection direction, bool isRequired, System.Collections.Generic.List<string> overloadGroupNames);
new System.Activities.RuntimeArgument : string * Type * System.Activities.ArgumentDirection * bool * System.Collections.Generic.List<string> -> System.Activities.RuntimeArgument
Public Sub New (name As String, argumentType As Type, direction As ArgumentDirection, isRequired As Boolean, overloadGroupNames As List(Of String))

参数

name
String

RuntimeArgument 的名称。

argumentType
Type

RuntimeArgument 的数据类型。

direction
ArgumentDirection

参数的数据流方向。

isRequired
Boolean

如果指示需要将 RuntimeArgument 绑定到一个值;则为 true否则为 false

overloadGroupNames
List<String>

应用于此 RuntimeArgument 的重载组的名称。

注解

未绑定必需的参数会导致设计时显示验证错误。

RuntimeArgument.IsRequired如果将 应用于参数,则将 System.Activities.RequiredArgumentAttribute 设置为 true

可通过 OverloadGroupAttribute 对参数设置重载组。

适用于