共用方式為


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