ImportManyAttribute 建構函式

定義

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

多載

ImportManyAttribute()

使用預設合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

ImportManyAttribute(String)

使用指定合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

ImportManyAttribute(Type)

使用衍生自指定型別之合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

ImportManyAttribute(String, Type)

使用指定之合約名稱和合約型別來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

ImportManyAttribute()

來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs

使用預設合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

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

備註

默認合約名稱是 GetContractName 呼叫 方法之屬性、字段或參數類型的結果,該類型會以這個屬性標示。

合約名稱是使用 Ordinal 屬性來執行區分大小寫的非語言比較來比較。

適用於

ImportManyAttribute(String)

來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs

使用指定合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

public:
 ImportManyAttribute(System::String ^ contractName);
public ImportManyAttribute (string contractName);
public ImportManyAttribute (string? contractName);
new System.ComponentModel.Composition.ImportManyAttribute : string -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractName As String)

參數

contractName
String

要匯入之匯出的合約名稱,否則為使用預設合約名稱的 null 或空字串 ("")。

備註

默認合約名稱是呼叫 GetContractName 屬性、字段或參數類型上方法的結果,該類型會以這個屬性標示。

合約名稱是使用 Ordinal 屬性來執行區分大小寫的非語言比較來比較。

適用於

ImportManyAttribute(Type)

來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs

使用衍生自指定型別之合約名稱來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

public:
 ImportManyAttribute(Type ^ contractType);
public ImportManyAttribute (Type contractType);
public ImportManyAttribute (Type? contractType);
new System.ComponentModel.Composition.ImportManyAttribute : Type -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractType As Type)

參數

contractType
Type

要從中衍生匯入之匯出合約名稱的型別,否則為使用預設合約名稱的 null

備註

合約名稱是在上contractType呼叫 GetContractName 方法的結果。

默認合約名稱是呼叫 GetContractName 屬性、字段或參數類型上方法的結果,該類型會以這個屬性標示。

合約名稱是使用 Ordinal 屬性來執行區分大小寫的非語言比較來比較。

適用於

ImportManyAttribute(String, Type)

來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs
來源:
ImportManyAttribute.cs

使用指定之合約名稱和合約型別來匯入匯出集,初始化 ImportManyAttribute 類別的新執行個體。

public:
 ImportManyAttribute(System::String ^ contractName, Type ^ contractType);
public ImportManyAttribute (string contractName, Type contractType);
public ImportManyAttribute (string? contractName, Type? contractType);
new System.ComponentModel.Composition.ImportManyAttribute : string * Type -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractName As String, contractType As Type)

參數

contractName
String

要匯入之匯出的合約名稱,否則為使用預設合約名稱的 null 或空字串 ("")。

contractType
Type

要滙入的匯出類型。

適用於