CustomTypeDescriptor.GetAttributes Método

Definição

Retorna uma coleção de atributos personalizados para o tipo representado por esse descritor de tipo.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

Retornos

AttributeCollection

Uma AttributeCollection que contém os atributos do tipo.An AttributeCollection containing the attributes for the type. O padrão é Empty.The default is Empty.

Implementações

Comentários

Se um descritor de tipo personalizado pai foi passado para o CustomTypeDescriptor Construtor, o GetAttributes método chamará o método correspondente do pai.If a parent custom type descriptor was passed to the CustomTypeDescriptor constructor, the GetAttributes method will call the parent's corresponding method.

Aplica-se a

Confira também