共用方式為


ImportManyAttribute 建構函式

定義

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

多載

名稱 Description
ImportManyAttribute()

初始化該類別的新實例 ImportManyAttribute ,並以預設合約名稱匯入匯出集合。

ImportManyAttribute(String)

初始化該類別的新實例 ImportManyAttribute ,匯入以指定合約名稱匯入的匯出集合。

ImportManyAttribute(Type)

初始化該類別的新實例 ImportManyAttribute ,匯入由指定類型衍生的合約名稱匯入匯出集合。

ImportManyAttribute(String, Type)

初始化該類別的新實例 ImportManyAttribute ,匯入指定合約名稱與合約類型的匯出集合。

ImportManyAttribute()

來源:
ImportManyAttribute.cs
來源:
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.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.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 使用預設的合約名稱。

備註

合約名稱是呼叫 GetContractName 該方法於 的 contractType結果。

預設合約名稱是呼叫 GetContractName 標記此屬性的屬性、欄位或參數型別的方法的結果。

合約名稱是透過使用 Ordinal 該屬性進行大小寫區分、非語言學的比較來比較的。

適用於

ImportManyAttribute(String, Type)

來源:
ImportManyAttribute.cs
來源:
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

出口到進口的類型。

適用於