RectangleConverter.GetProperties Metoda

Definice

Načte sadu vlastností pro tento typ. Ve výchozím nastavení typ nevrací žádné vlastnosti.

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object? value, Attribute[]? attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

Parametry

context
ITypeDescriptorContext

A ITypeDescriptorContext prostřednictvím kterého lze poskytnout další kontext.

value
Object

Hodnota objektu pro získání vlastností.

attributes
Attribute[]

Pole Attribute objektů, které popisují vlastnosti.

Návraty

Sada vlastností, které by měly být vystaveny pro tento datový typ. Pokud by neměly být vystaveny žádné vlastnosti, může to vrátit null. Výchozí implementace vždy vrátí null.

Atributy

Poznámky

Jednoduchá implementace této metody může jednoduše volat metodu GetProperties pro správný datový typ.

Platí pro