Språk

LinkArea.LinkAreaConverter.GetProperties Metod

Definition

Hämtar uppsättningen med egenskaper för den här typen.

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

Parametrar

context
ITypeDescriptorContext

En typbeskrivning genom vilken ytterligare kontext kan tillhandahållas.

value
Object

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

attributes
Attribute[]

Attributen för objektet som egenskaperna ska hämtas för.

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

Som standard returnerar inte en typ några egenskaper. En enkel implementering av den här metoden kan bara kräva GetProperties rätt datatyp.

Gäller för