ICustomTypeDescriptor.GetProperties Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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()
- Origine:
- ICustomTypeDescriptor.cs
- Origine:
- ICustomTypeDescriptor.cs
- Origine:
- ICustomTypeDescriptor.cs
Restituisce le proprietà per questa istanza di un componente.
public:
System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection GetProperties();
public System.ComponentModel.PropertyDescriptorCollection GetProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
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.
- Attributi
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[])
- Origine:
- ICustomTypeDescriptor.cs
- Origine:
- ICustomTypeDescriptor.cs
- Origine:
- ICustomTypeDescriptor.cs
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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[]? attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection
Parametri
Valori restituiti
Oggetto PropertyDescriptorCollection che rappresenta le proprietà filtrate per questa istanza del componente.
- Attributi
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
- GetProperties(Object, Attribute[])
- Attribute
- DefaultPropertyAttribute
- GetProperties
- PropertyDescriptorCollection
- GetEvents
- GetAttributes()
- GetDefaultProperty()