ExportAttribute 构造函数

定义

重载

ExportAttribute()

通过在默认协定名称下导出使用此特性标记的类型或成员,初始化 ExportAttribute 类的新实例。

ExportAttribute(String)

通过在指定的协定名称下导出用此属性标记的类型或成员,来初始化 ExportAttribute 类的新实例。

ExportAttribute(Type)

通过在派生自指定类型的协定名称下导出使用此特性标记的类型或成员,初始化 ExportAttribute 类的新实例。

ExportAttribute(String, Type)

通过在指定协定名称下导出指定类型,初始化 ExportAttribute 类的新实例。

ExportAttribute()

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

通过在默认协定名称下导出使用此特性标记的类型或成员,初始化 ExportAttribute 类的新实例。

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

注解

使用此属性标记的方法必须使用 或 方法指定协定名称或ExportAttribute(Type)类型ExportAttribute(String)

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

适用于

ExportAttribute(String)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

通过在指定的协定名称下导出用此属性标记的类型或成员,来初始化 ExportAttribute 类的新实例。

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

参数

contractName
String

用于导出使用此特性标记的类型或成员的协定名称,或 null 或空字符串 ("") 以使用默认协定名称。

注解

使用此属性标记的方法必须使用 或 方法指定协定名称或ExportAttribute(Type)类型ExportAttribute(String)

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

适用于

ExportAttribute(Type)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

通过在派生自指定类型的协定名称下导出使用此特性标记的类型或成员,初始化 ExportAttribute 类的新实例。

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

参数

contractType
Type

从中派生用于导出使用此特性标记的类型或成员的协定名称的类型,或 null 以使用默认协定名称。

注解

使用此属性标记的方法必须使用 或 方法指定协定名称或ExportAttribute(Type)类型ExportAttribute(String)

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

适用于

ExportAttribute(String, Type)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

通过在指定协定名称下导出指定类型,初始化 ExportAttribute 类的新实例。

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

参数

contractName
String

用于导出使用此特性标记的类型或成员的协定名称,或 null 或空字符串 ("") 以使用默认协定名称。

contractType
Type

要导出的类型。

适用于