CustomTypeDescriptor.GetProperties Metoda

Definice

Vrátí kolekci popisovačů vlastností pro objekt reprezentovaný tímto popisovačem typu.

Přetížení

Name Description
GetProperties()

Vrátí kolekci popisovačů vlastností pro objekt reprezentovaný tímto popisovačem typu.

GetProperties(Attribute[])

Vrátí filtrovanou kolekci popisovačů vlastností pro objekt reprezentovaný tímto popisovačem typu.

Poznámky

Metoda GetProperties vrátí kolekci popisovačů vlastností pro objekt, který tento typ popisovač představuje. K filtrování vrácené kolekce může být k dispozici volitelné pole atributů. Pokud není k dispozici žádný nadřazený objekt, vrátí metoda Empty.

GetProperties()

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Vrátí kolekci popisovačů vlastností pro objekt reprezentovaný tímto popisovačem typu.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties () As PropertyDescriptorCollection

Návraty

A PropertyDescriptorCollection obsahující popisy vlastností pro objekt reprezentovaný tímto popisovačem typu. Výchozí hodnota je Empty.

Implementuje

Atributy

Poznámky

Pokud byl do konstruktoru CustomTypeDescriptor předán nadřazený popisovač vlastního typu, GetProperties metoda zavolá odpovídající metodu nadřazeného objektu.

Viz také

Platí pro

GetProperties(Attribute[])

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Vrátí filtrovanou kolekci popisovačů vlastností pro objekt reprezentovaný tímto popisovačem typu.

public:
 virtual 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 virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[]? attributes);
public virtual 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
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

Parametry

attributes
Attribute[]

Pole atributů, které se mají použít jako filtr. To může být null.

Návraty

A PropertyDescriptorCollection obsahující popisy vlastností pro objekt reprezentovaný tímto popisovačem typu. Výchozí hodnota je Empty.

Implementuje

Atributy

Poznámky

Pomocí parametru attributes můžete filtrovat vrácenou kolekci. Pravidla filtrování najdete v tématu GetProperties.

Pokud byl do konstruktoru CustomTypeDescriptor předán nadřazený popisovač vlastního typu, GetProperties metoda zavolá odpovídající metodu nadřazeného objektu.

Viz také

Platí pro