通过


ImportManyAttribute 构造函数

定义

初始化 ImportManyAttribute 类的新实例。

重载

名称 说明
ImportManyAttribute()

初始化类的新实例 ImportManyAttribute ,使用默认协定名称导入导出集。

ImportManyAttribute(String)

初始化类的新实例 ImportManyAttribute ,导入具有指定协定名称的导出集。

ImportManyAttribute(Type)

初始化类的新实例 ImportManyAttribute ,使用派生自指定类型的协定名称导入导出集。

ImportManyAttribute(String, Type)

初始化类的新实例 ImportManyAttribute ,使用指定的协定名称和协定类型导入导出集。

ImportManyAttribute()

Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs

初始化类的新实例 ImportManyAttribute ,使用默认协定名称导入导出集。

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

注解

默认协定名称是在用此属性标记的属性、字段或参数的类型上调用 GetContractName 方法的结果。

通过使用属性执行区分大小写的非语言比较来比较 Ordinal 协定名称。

适用于

ImportManyAttribute(String)

Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
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)

Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
ImportManyAttribute.cs
Source:
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 默认协定名称。

注解

协定名称是调用方法 GetContractNamecontractType的结果。

默认协定名称是在用此属性标记的属性、字段或参数类型上调用 GetContractName 方法的结果。

通过使用属性执行区分大小写的非语言比较来比较 Ordinal 协定名称。

适用于

ImportManyAttribute(String, Type)

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

要导入的导出的类型。

适用于