InheritedExportAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 InheritedExportAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| InheritedExportAttribute() |
初始化 InheritedExportAttribute 類別的新執行個體。 |
| InheritedExportAttribute(String) |
初始化一個以指定合約名稱的 InheritedExportAttribute 類別新實例。 |
| InheritedExportAttribute(Type) |
初始化一個以指定合約型別的新類別實例 InheritedExportAttribute 。 |
| InheritedExportAttribute(String, Type) |
初始化一個以指定合約名稱與類型的類別新實例 InheritedExportAttribute 。 |
InheritedExportAttribute()
初始化 InheritedExportAttribute 類別的新執行個體。
public:
InheritedExportAttribute();
public InheritedExportAttribute();
Public Sub New ()
備註
預設合約名稱是呼叫 AttributedModelServices.GetContractName(Type) 標有此屬性的型別本身所產生的結果。
合約名稱的比較方式是用大小寫區分、非語言學的比較 StringComparer.Ordinal方式。
適用於
InheritedExportAttribute(String)
初始化一個以指定合約名稱的 InheritedExportAttribute 類別新實例。
public:
InheritedExportAttribute(System::String ^ contractName);
public InheritedExportAttribute(string contractName);
new System.ComponentModel.Composition.InheritedExportAttribute : string -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractName As String)
參數
- contractName
- String
合約的名稱。
備註
預設合約名稱是呼叫 AttributedModelServices.GetContractName(Type) 標示此屬性的型別後產生的。
合約名稱的比較方式是用大小寫區分、非語言學的比較 StringComparer.Ordinal方式。
適用於
InheritedExportAttribute(Type)
初始化一個以指定合約型別的新類別實例 InheritedExportAttribute 。
public:
InheritedExportAttribute(Type ^ contractType);
public InheritedExportAttribute(Type contractType);
new System.ComponentModel.Composition.InheritedExportAttribute : Type -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractType As Type)
參數
- contractType
- Type
合約的類型。
備註
合約名稱是呼叫 AttributedModelServices.GetContractName(Type) 的 contractType結果。
預設合約名稱是呼叫 AttributedModelServices.GetContractName(Type) 標有此屬性的型別本身所產生的結果。
合約名稱的比較方式是用大小寫區分、非語言學的比較 StringComparer.Ordinal方式。
適用於
InheritedExportAttribute(String, Type)
初始化一個以指定合約名稱與類型的類別新實例 InheritedExportAttribute 。
public:
InheritedExportAttribute(System::String ^ contractName, Type ^ contractType);
public InheritedExportAttribute(string contractName, Type contractType);
new System.ComponentModel.Composition.InheritedExportAttribute : string * Type -> System.ComponentModel.Composition.InheritedExportAttribute
Public Sub New (contractName As String, contractType As Type)
參數
- contractName
- String
合約的名稱。
- contractType
- Type
合約的類型。
備註
預設合約名稱是呼叫 AttributedModelServices.GetContractName(Type) 標示此屬性的型別後產生的。
合約名稱的比較方式是用大小寫區分、非語言學的比較 StringComparer.Ordinal方式。