ImportManyAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定应使用主机容器的所有匹配导出填充属性、字段或参数。
public ref class ImportManyAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public class ImportManyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type ImportManyAttribute = class
inherit Attribute
Public Class ImportManyAttribute
Inherits Attribute
- 继承
- 属性
构造函数
| 名称 | 说明 |
|---|---|
| ImportManyAttribute() |
初始化类的新实例 ImportManyAttribute ,导入具有默认协定名称的导出集。 |
| ImportManyAttribute(String) |
初始化类的新实例 ImportManyAttribute ,导入具有指定协定名称的导出集。 |
属性
| 名称 | 说明 |
|---|---|
| ContractName |
获取要导入的导出的协定名称。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
返回一个值,该值指示此实例是否等于指定对象。 (继承自 Attribute) |
| GetHashCode() |
返回此实例的哈希代码。 (继承自 Attribute) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| ToString() |
返回一个表示当前对象的字符串。 (继承自 Object) |