CustomTypeDescriptor.GetProperties Metod

Definition

Returnerar en samling egenskapsbeskrivningar för objektet som representeras av den här typen av beskrivning.

Överlagringar

Name Description
GetProperties()

Returnerar en samling egenskapsbeskrivningar för objektet som representeras av den här typen av beskrivning.

GetProperties(Attribute[])

Returnerar en filtrerad samling egenskapsbeskrivningar för objektet som representeras av den här typen av beskrivning.

Kommentarer

Metoden GetProperties returnerar en samling egenskapsbeskrivningar för objektet som den här typen av beskrivning representerar. En valfri attributmatris kan tillhandahållas för att filtrera samlingen som returneras. Om ingen överordnad anges returnerar Emptymetoden .

GetProperties()

Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs

Returnerar en samling egenskapsbeskrivningar för objektet som representeras av den här typen av beskrivning.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties () As PropertyDescriptorCollection

Returer

En PropertyDescriptorCollection som innehåller egenskapsbeskrivningarna för objektet som representeras av den här typens beskrivning. Standardvärdet är Empty.

Implementeringar

Attribut

Kommentarer

Om en överordnad anpassad typbeskrivning skickades till CustomTypeDescriptor konstruktorn GetProperties anropar metoden den överordnade metoden.

Se även

Gäller för

GetProperties(Attribute[])

Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs
Källa:
CustomTypeDescriptor.cs

Returnerar en filtrerad samling egenskapsbeskrivningar för objektet som representeras av den här typen av beskrivning.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[]? attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

Parametrar

attributes
Attribute[]

En matris med attribut som ska användas som ett filter. Detta kan vara null.

Returer

En PropertyDescriptorCollection som innehåller egenskapsbeskrivningarna för objektet som representeras av den här typens beskrivning. Standardvärdet är Empty.

Implementeringar

Attribut

Kommentarer

Du kan använda parametern attributes för att filtrera samlingen som returneras. Information om filtreringsregler finns i GetProperties.

Om en överordnad anpassad typbeskrivning skickades till CustomTypeDescriptor konstruktorn GetProperties anropar metoden den överordnade metoden.

Se även

Gäller för