MemberDescriptor.Attributes 属性

定义

获取该成员的特性集合。Gets the collection of attributes for this member.

public:
 virtual property System::ComponentModel::AttributeCollection ^ Attributes { System::ComponentModel::AttributeCollection ^ get(); };
public virtual System.ComponentModel.AttributeCollection Attributes { get; }
member this.Attributes : System.ComponentModel.AttributeCollection
Public Overridable ReadOnly Property Attributes As AttributeCollection

属性值

一个提供此成员的特性的 AttributeCollection;如果 AttributeArray 中没有特性,则为空集合。An AttributeCollection that provides the attributes for this member, or an empty collection if there are no attributes in the AttributeArray.

注解

如果此成员没有 AttributeCollection,则此属性将调用 CreateAttributeCollection 方法,使用传递给构造函数的 Attribute 对象数组来创建新的 AttributeCollectionIf there is no AttributeCollection for this member, this property calls the CreateAttributeCollection method to create a new AttributeCollection using the array of Attribute objects passed to the constructor.

适用于

另请参阅