Język

ImageConverter.GetProperties Metoda

Definicja

Pobiera zestaw właściwości tego typu.

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);
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

Deskryptor typu, za pomocą którego można podać dodatkowy kontekst.

value
Object

Wartość obiektu w celu pobrania właściwości .

attributes
Attribute[]

Tablica Attribute obiektów opisujących właściwości.

Zwraca

Zestaw właściwości, które powinny być uwidocznione dla tego typu danych. Jeśli nie należy ujawniać żadnych właściwości, może to zwrócić wartość null. Domyślna implementacja zawsze zwraca wartość null.

Atrybuty

Uwagi

Domyślnie typ nie zwraca żadnych właściwości. Prosta implementacja tej metody wywołuje metodę GetProperties poprawnego typu danych.

Dotyczy