ICustomTypeDescriptor.GetProperties Metod

Definition

Returnerar egenskaperna för den här instansen av en komponent.

Överlagringar

Name Description
GetProperties()

Returnerar egenskaperna för den här instansen av en komponent.

GetProperties(Attribute[])

Returnerar egenskaperna för den här instansen av en komponent med hjälp av attributmatrisen som ett filter.

GetProperties()

Källa:
ICustomTypeDescriptor.cs
Källa:
ICustomTypeDescriptor.cs
Källa:
ICustomTypeDescriptor.cs

Returnerar egenskaperna för den här instansen av en komponent.

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

Returer

En PropertyDescriptorCollection som representerar egenskaperna för den här komponentinstansen.

Attribut

Kommentarer

Egenskaperna för den här instansen kan skilja sig från den uppsättning egenskaper som klassen tillhandahåller. Om komponenten till exempel är platsindelad kan webbplatsen lägga till eller ta bort ytterligare egenskaper.

Implementerare kan returnera PropertyDescriptorCollection.Empty om inga egenskaper har angetts. Den här metoden bör aldrig returnera null.

Se även

Gäller för

GetProperties(Attribute[])

Källa:
ICustomTypeDescriptor.cs
Källa:
ICustomTypeDescriptor.cs
Källa:
ICustomTypeDescriptor.cs

Returnerar egenskaperna för den här instansen av en komponent med hjälp av attributmatrisen som ett filter.

public:
 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 System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[]? attributes);
public 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
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

Parametrar

attributes
Attribute[]

En matris av typen Attribute som används som ett filter.

Returer

En PropertyDescriptorCollection som representerar de filtrerade egenskaperna för den här komponentinstansen.

Attribut

Kommentarer

Egenskaperna för den här instansen kan skilja sig från den uppsättning egenskaper som klassen tillhandahåller. Om komponenten till exempel är platsindelad kan webbplatsen lägga till eller ta bort ytterligare egenskaper.

Om en Attribute anges i matrisen attributes och egenskapen inte har någon instans av -klassen för det attributet, kommer den returnerade samlingen att innehålla egenskapen om Attribute är standardegenskapen.

Information om filtreringsregler finns i GetProperties.

Se även

Gäller för