CustomTypeDescriptor.GetAttributes Метод
Определение
Возвращает коллекцию настраиваемых атрибутов для типа, представленного этим дескриптором типа.Returns a collection of custom attributes for the type represented by this type descriptor.
public:
virtual System::ComponentModel::AttributeCollection ^ GetAttributes();
public virtual System.ComponentModel.AttributeCollection GetAttributes ();
abstract member GetAttributes : unit -> System.ComponentModel.AttributeCollection
override this.GetAttributes : unit -> System.ComponentModel.AttributeCollection
Public Overridable Function GetAttributes () As AttributeCollection
Возвращаемое значение
Коллекция AttributeCollection, содержащая атрибуты для этого типа.An AttributeCollection containing the attributes for the type. Значение по умолчанию — Empty.The default is Empty.
Реализации
Комментарии
Если родительский дескриптор настраиваемого типа был передан CustomTypeDescriptor конструктору, GetAttributes метод вызовет соответствующий метод родителя.If a parent custom type descriptor was passed to the CustomTypeDescriptor constructor, the GetAttributes method will call the parent's corresponding method.