InputDescriptor 建構函式 (String, Type, String, String, AutoAssignedInput)
使用提供的參數,初始化 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 _
)
public InputDescriptor(
string key,
Type type,
string name,
string description,
AutoAssignedInput inputType
)
public:
InputDescriptor(
String^ key,
Type^ type,
String^ name,
String^ description,
AutoAssignedInput inputType
)
new :
key:string *
type:Type *
name:string *
description:string *
inputType:AutoAssignedInput -> InputDescriptor
public function InputDescriptor(
key : String,
type : Type,
name : String,
description : String,
inputType : AutoAssignedInput
)
參數
- key
型別:System.String
可唯一識別輸入值的索引鍵。如果是預設產生器,這個索引鍵會是屬性名稱。
- type
型別:System.Type
輸入值的資料型別。
- name
型別:System.String
輸入的易記名稱。這個名稱會顯示於 [屬性] 視窗。
- description
型別:System.String
輸入的描述。這個描述會顯示於 [屬性] 視窗。
- inputType
型別:Microsoft.Data.Schema.Tools.DataGenerator.AutoAssignedInput
AutoAssignedInput 列舉的成員,表示輸入的型別。這個參數可用來指定已知輸入型別的輸入型別。
備註
inputType 參數可以具有 AutoAssignedInput 所定義的任何一個已知輸入型別,包括 Seed()、Nullable()、PercentageNull() 和 Unique() 等等。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。