ICustomTypeDescriptor.GetProperties Metoda

Definice

Vrátí vlastnosti pro tuto instanci komponenty.

Přetížení

Name Description
GetProperties()

Vrátí vlastnosti pro tuto instanci komponenty.

GetProperties(Attribute[])

Vrátí vlastnosti pro tuto instanci komponenty pomocí pole atributů jako filtru.

GetProperties()

Zdroj:
ICustomTypeDescriptor.cs
Zdroj:
ICustomTypeDescriptor.cs
Zdroj:
ICustomTypeDescriptor.cs

Vrátí vlastnosti pro tuto instanci komponenty.

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

Návraty

A PropertyDescriptorCollection , který představuje vlastnosti pro tuto instanci komponenty.

Atributy

Poznámky

Vlastnosti této instance se mohou lišit od sady vlastností, které třída poskytuje. Pokud je například komponenta v lokalitě, může lokalita přidat nebo odebrat další vlastnosti.

Implementátory můžou vrátit PropertyDescriptorCollection.Empty , pokud nejsou zadány žádné vlastnosti. Tato metoda by nikdy neměla vrátit null.

Viz také

Platí pro

GetProperties(Attribute[])

Zdroj:
ICustomTypeDescriptor.cs
Zdroj:
ICustomTypeDescriptor.cs
Zdroj:
ICustomTypeDescriptor.cs

Vrátí vlastnosti pro tuto instanci komponenty pomocí pole atributů jako filtru.

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

Parametry

attributes
Attribute[]

Pole typu Attribute , které se používá jako filtr.

Návraty

A PropertyDescriptorCollection , který představuje filtrované vlastnosti pro tuto instanci komponenty.

Atributy

Poznámky

Vlastnosti této instance se mohou lišit od sady vlastností, které třída poskytuje. Pokud je například komponenta v lokalitě, může lokalita přidat nebo odebrat další vlastnosti.

Attribute Pokud je zadána v attributes poli a vlastnost nemá instanci třídy pro tento atribut, vrácená kolekce bude zahrnovat vlastnost, pokud Attribute je výchozí vlastnost.

Pravidla filtrování najdete v tématu GetProperties.

Viz také

Platí pro