ExportAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ExportAttribute() |
初始化类的新实例 ExportAttribute ,在默认协定名称下导出用此属性标记的类型或成员。 |
| ExportAttribute(String) |
初始化类的新实例 ExportAttribute ,导出在指定协定名称下用此属性标记的类型或成员。 |
| ExportAttribute(Type) |
初始化类的新实例 ExportAttribute ,在派生自指定类型的协定名称下导出用此属性标记的类型或成员。 |
| ExportAttribute(String, Type) |
初始化类的新实例 ExportAttribute ,在指定的协定名称下导出指定类型。 |
ExportAttribute()
- Source:
- ExportAttribute.cs
- Source:
- ExportAttribute.cs
- Source:
- ExportAttribute.cs
- Source:
- ExportAttribute.cs
初始化类的新实例 ExportAttribute ,在默认协定名称下导出用此属性标记的类型或成员。
public:
ExportAttribute();
public ExportAttribute();
Public Sub New ()
注解
使用此属性标记的方法必须通过使用 ExportAttribute(String) 或方法指定协定名称或 ExportAttribute(Type) 类型。
通过使用属性执行区分大小写的非语言比较来比较 Ordinal 协定名称。
适用于
ExportAttribute(String)
- Source:
- ExportAttribute.cs
- 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(String) 或方法指定协定名称或 ExportAttribute(Type) 类型。
通过使用属性执行区分大小写的非语言比较来比较 Ordinal 协定名称。
适用于
ExportAttribute(Type)
- Source:
- ExportAttribute.cs
- 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(String) 或方法指定协定名称或 ExportAttribute(Type) 类型。
通过使用属性执行区分大小写的非语言比较来比较 Ordinal 协定名称。
适用于
ExportAttribute(String, Type)
- Source:
- ExportAttribute.cs
- 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
要导出的类型。