共用方式為


InheritedExportAttribute 建構函式

定義

初始化 InheritedExportAttribute 類別的新執行個體。

多載

InheritedExportAttribute()

初始化 InheritedExportAttribute 類別的新執行個體。

InheritedExportAttribute(String)

使用指定的合約名稱,初始化 InheritedExportAttribute 類別的新執行個體。

InheritedExportAttribute(Type)

使用指定的合約型別,初始化 InheritedExportAttribute 類別的新執行個體。

InheritedExportAttribute(String, Type)

使用指定的合約名稱和型別,初始化 InheritedExportAttribute 類別的新執行個體。

InheritedExportAttribute()

來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs

初始化 InheritedExportAttribute 類別的新執行個體。

public:
 InheritedExportAttribute();
public InheritedExportAttribute ();
Public Sub New ()

備註

默認合約名稱是呼叫以這個屬性標示之型別本身的結果 AttributedModelServices.GetContractName(Type)

合約名稱會使用區分大小寫的非語言比較 StringComparer.Ordinal來比較。

適用於

InheritedExportAttribute(String)

來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs

使用指定的合約名稱,初始化 InheritedExportAttribute 類別的新執行個體。

public:
 InheritedExportAttribute(System::String ^ contractName);
public InheritedExportAttribute (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.cs
來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs

使用指定的合約型別,初始化 InheritedExportAttribute 類別的新執行個體。

public:
 InheritedExportAttribute(Type ^ contractType);
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

合約的類型。

備註

合約名稱是在上contractType呼叫 AttributedModelServices.GetContractName(Type) 的結果。

默認合約名稱是呼叫以這個屬性標示之型別本身的結果 AttributedModelServices.GetContractName(Type)

合約名稱會使用區分大小寫的非語言比較 StringComparer.Ordinal來比較。

適用於

InheritedExportAttribute(String, Type)

來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs
來源:
InheritedExportAttribute.cs

使用指定的合約名稱和型別,初始化 InheritedExportAttribute 類別的新執行個體。

public:
 InheritedExportAttribute(System::String ^ contractName, Type ^ contractType);
public InheritedExportAttribute (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來比較。

適用於