RectangleConverter.GetProperties Metod

Definition

Hämtar uppsättningen med egenskaper för den här typen. Som standard returnerar inte en typ några egenskaper.

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

Parametrar

context
ITypeDescriptorContext

En ITypeDescriptorContext genom vilken ytterligare kontext kan tillhandahållas.

value
Object

Värdet för objektet som egenskaperna ska hämtas för.

attributes
Attribute[]

En matris med Attribute objekt som beskriver egenskaperna.

Returer

Den uppsättning egenskaper som ska exponeras för den här datatypen. Om inga egenskaper ska exponeras kan detta returnera null. Standardimplementeringen returnerar alltid null.

Attribut

Kommentarer

En enkel implementering av den här metoden kan bara anropa GetProperties metoden för rätt datatyp.

Gäller för