ExportAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ExportAttribute() |
初始化該類別的新實例 ExportAttribute ,並將預設合約名稱下標記為此屬性的類型或成員匯出。 |
| ExportAttribute(String) |
初始化該類別的新實例 ExportAttribute ,匯出以指定合約名稱標示此屬性的類型或成員。 |
| ExportAttribute(Type) |
初始化該類別的新實例 ExportAttribute ,並以指定類型衍生的合約名稱匯出帶有此屬性的類型或成員。 |
| ExportAttribute(String, Type) |
初始化該類別的新實例 ExportAttribute ,並以指定的合約名稱匯出指定的型別。 |
ExportAttribute()
初始化該類別的新實例 ExportAttribute ,並將預設合約名稱下標記為此屬性的類型或成員匯出。
public:
ExportAttribute();
public ExportAttribute();
Public Sub New ()
備註
標示此屬性的方法必須透過 the ExportAttribute(String) 或 method ExportAttribute(Type) 來指定合約名稱或類型。
合約名稱是透過使用 Ordinal 該屬性進行大小寫區分、非語言學的比較來比較的。
適用於
ExportAttribute(String)
初始化該類別的新實例 ExportAttribute ,匯出以指定合約名稱標示此屬性的類型或成員。
public:
ExportAttribute(System::String ^ contractName);
public ExportAttribute(string contractName);
new System.Composition.ExportAttribute : string -> System.Composition.ExportAttribute
Public Sub New (contractName As String)
參數
- contractName
- String
用來匯出帶有此屬性的類型或成員的合約名稱,或 null 使用空字串(“”)作為預設合約名稱。
備註
標示此屬性的方法必須透過 the ExportAttribute(String) 或 method ExportAttribute(Type) 來指定合約名稱或類型。
合約名稱是透過使用 Ordinal 該屬性進行大小寫區分、非語言學的比較來比較的。
適用於
ExportAttribute(Type)
初始化該類別的新實例 ExportAttribute ,並以指定類型衍生的合約名稱匯出帶有此屬性的類型或成員。
public:
ExportAttribute(Type ^ contractType);
public ExportAttribute(Type contractType);
new System.Composition.ExportAttribute : Type -> System.Composition.ExportAttribute
Public Sub New (contractType As Type)
參數
- contractType
- Type
一種用於導出帶有此屬性的類型或成員的合約名稱的類型,或 null 使用預設合約名稱的類型。
備註
標示此屬性的方法必須透過 the ExportAttribute(String) 或 method ExportAttribute(Type) 來指定合約名稱或類型。
合約名稱是透過使用 Ordinal 該屬性進行大小寫區分、非語言學的比較來比較的。
適用於
ExportAttribute(String, Type)
初始化該類別的新實例 ExportAttribute ,並以指定的合約名稱匯出指定的型別。
public:
ExportAttribute(System::String ^ contractName, Type ^ contractType);
public ExportAttribute(string contractName, Type contractType);
new System.Composition.ExportAttribute : string * Type -> System.Composition.ExportAttribute
Public Sub New (contractName As String, contractType As Type)
參數
- contractName
- String
用來匯出帶有此屬性的類型或成員的合約名稱,或 null 使用空字串(“”)作為預設合約名稱。
- contractType
- Type
要輸出的類型。