InputDescriptor 构造函数 (String, Type, String, String, AutoAssignedInput, Type, String)

使用提供的参数初始化 InputDescriptor 类的新实例。

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
Public Sub New ( _
    key As String, _
    type As Type, _
    name As String, _
    description As String, _
    inputType As AutoAssignedInput, _
    typeConverter As Type, _
    uiTypeEditorName As String _
)
public InputDescriptor(
    string key,
    Type type,
    string name,
    string description,
    AutoAssignedInput inputType,
    Type typeConverter,
    string uiTypeEditorName
)
public:
InputDescriptor(
    String^ key, 
    Type^ type, 
    String^ name, 
    String^ description, 
    AutoAssignedInput inputType, 
    Type^ typeConverter, 
    String^ uiTypeEditorName
)
new : 
        key:string * 
        type:Type * 
        name:string * 
        description:string * 
        inputType:AutoAssignedInput * 
        typeConverter:Type * 
        uiTypeEditorName:string -> InputDescriptor
public function InputDescriptor(
    key : String, 
    type : Type, 
    name : String, 
    description : String, 
    inputType : AutoAssignedInput, 
    typeConverter : Type, 
    uiTypeEditorName : String
)

参数

  • key
    类型:System.String
    用于唯一标识输入值的键。对于默认生成器,此键为属性名称。
  • type
    类型:System.Type
    输入值的数据类型。
  • name
    类型:System.String
    输入的友好名称。此名称显示在**“属性”**窗口中。
  • description
    类型:System.String
    输入的描述。此描述显示在**“属性”**窗口中。
  • typeConverter
    类型:System.Type
    用于此输入的类型转换器的 Type。类型转换器用于在**“属性”**窗口中显示下拉列表。
  • uiTypeEditorName
    类型:System.String
    此输入的类型编辑器的名称。

备注

inputType 参数可以具有 AutoAssignedInput 定义的任何一种已知的输入类型,包括 Seed()、Nullable()、PercentageNull()、Unique() 等等。

.NET Framework 安全性

请参见

参考

InputDescriptor 类

InputDescriptor 重载

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

InputDescriptor