SelectionRangeConverter.GetProperties Metoda

Definice

Vrátí sadu filtrovaných vlastností pro SelectionRange typ.

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <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.")]
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value, Attribute[]? attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
[<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
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

Parametry

context
ITypeDescriptorContext

A ITypeDescriptorContext , který poskytuje kontext formátu.

value
Object

Určuje Object typ pole, pro které se mají získat vlastnosti.

attributes
Attribute[]

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

Návraty

Pokud je to úspěšné, sada vlastností, které by měly být pro SelectionRange daný typ vystaveny, jinak . null

Atributy

Poznámky

Výchozí implementace této metody nepoužívá context nebo value parametry, ale jednoduše odkazuje na volání TypeDescriptor.TypeDescriptor.GetProperties(Type, Attribute[])

Platí pro

Viz také