共用方式為


InputAttribute 類別

屬性 (Attribute),將產生器屬性 (Property) 識別為輸入屬性 (Property)。

繼承階層架構

System.Object
  System.Attribute
    Microsoft.Data.Schema.Tools.DataGenerator.InputAttribute

命名空間:  Microsoft.Data.Schema.Tools.DataGenerator
組件:  Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)

語法

'宣告
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False,  _
    Inherited := True)> _
<CLSCompliantAttribute(True)> _
Public NotInheritable Class InputAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false, 
    Inherited = true)]
[CLSCompliantAttribute(true)]
public sealed class InputAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false, 
    Inherited = true)]
[CLSCompliantAttribute(true)]
public ref class InputAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false, 
    Inherited = true)>]
[<CLSCompliantAttribute(true)>]
type InputAttribute =  
    class
        inherit Attribute
    end
public final class InputAttribute extends Attribute

InputAttribute 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 InputAttribute 初始化 InputAttribute 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 AutoAssignedInput 取得或設定輸入屬性的型別。
公用屬性 DefaultValue 取得或設定輸入屬性的預設值。
公用屬性 Description 取得或設定輸入屬性的描述。
公用屬性 EditorType 取得或設定要用於這個屬性的編輯器類型。
公用屬性 Name 輸入屬性的名稱。
公用屬性 ReadOnly 取得或設定值,指出輸入屬性在 [屬性] 視窗中是否為唯讀的。
公用屬性 TypeConverter 取得或設定顯示輸入屬性的型別轉換子 (Type Converter)。
公用屬性 TypeId 在衍生類別中實作時,取得這個 Attribute 的唯一識別項。 (繼承自 Attribute)。
公用屬性 Visible 取得或設定值,指出輸入屬性是否會顯示在 [屬性] 視窗中。

回頁首

方法

  名稱 說明
公用方法 Equals 基礎架構。傳回數值,表示這個執行個體是否等於指定的物件。 (繼承自 Attribute)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 傳回這個執行個體的雜湊程式碼。 (繼承自 Attribute)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IsDefaultAttribute 在衍生類別中覆寫時,表示這個執行個體的值是否為衍生類別的預設值。 (繼承自 Attribute)。
公用方法 Match 在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承自 Attribute)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 _Attribute.GetIDsOfNames 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfo 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfoCount 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.Invoke 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。

回頁首

備註

使用這個屬性 (Attribute) 可將自訂資料產生器的屬性識別為輸入屬性 (Property)。 這些屬性會出現在 [屬性] 視窗中,使用者可在此處設定其值。 DefaultGeneratorDesigner 使用這個屬性來建構 InputDescriptor 物件的陣列。 這種行為是宣告式擴充性模型的一部分。 在此模型中,自訂產生器的作者可以在屬性中指定輸入和輸出,而不是明確建構提供輸入和輸出資料的設計工具。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

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

GetInputs

GetOutputs

其他資源

HOW TO:新增輸入屬性至資料產生器