ICustomTypeDescriptor.GetProperties Metodo

Definizione

Restituisce le proprietà per questa istanza di un componente.

Overload

Nome Descrizione
GetProperties()

Restituisce le proprietà per questa istanza di un componente.

GetProperties(Attribute[])

Restituisce le proprietà per questa istanza di un componente utilizzando la matrice di attributi come filtro.

GetProperties()

Restituisce le proprietà per questa istanza di un componente.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
public System.ComponentModel.PropertyDescriptorCollection GetProperties();
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties () As PropertyDescriptorCollection

Valori restituiti

Oggetto PropertyDescriptorCollection che rappresenta le proprietà per questa istanza del componente.

Commenti

Le proprietà per questa istanza possono differire dal set di proprietà fornite dalla classe . Ad esempio, se il componente è in sito, il sito può aggiungere o rimuovere proprietà aggiuntive.

Gli implementatori possono restituire PropertyDescriptorCollection.Empty se non sono specificate proprietà. Questo metodo non deve mai restituire null.

Vedi anche

Si applica a

GetProperties(Attribute[])

Restituisce le proprietà per questa istanza di un componente utilizzando la matrice di attributi come filtro.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[] attributes);
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

Parametri

attributes
Attribute[]

Matrice di tipo Attribute utilizzata come filtro.

Valori restituiti

Oggetto PropertyDescriptorCollection che rappresenta le proprietà filtrate per questa istanza del componente.

Commenti

Le proprietà per questa istanza possono differire dal set di proprietà fornite dalla classe . Ad esempio, se il componente è in sito, il sito può aggiungere o rimuovere proprietà aggiuntive.

Se un Attribute oggetto viene specificato nella attributes matrice e la proprietà non dispone di un'istanza della classe per tale attributo, l'insieme restituito includerà la proprietà se Attribute è la proprietà predefinita.

Per le regole di filtro, vedere GetProperties.

Vedi anche

Si applica a