Nyelv

CustomTypeDescriptor.GetProperties Metódus

Definíció

Az ilyen típusú leíró által képviselt objektum tulajdonságleíróinak gyűjteményét adja vissza.

Túlterhelések

Name Description
GetProperties()

Az ilyen típusú leíró által képviselt objektum tulajdonságleíróinak gyűjteményét adja vissza.

GetProperties(Attribute[])

Az ilyen típusú leíró által képviselt objektum tulajdonságleíróinak szűrt gyűjteményét adja vissza.

Megjegyzések

A GetProperties metódus a tulajdonságleírók gyűjteményét adja vissza ahhoz az objektumhoz, amelyet ez a típusleíró képvisel. Választható attribútumtömb is megadható a visszaadott gyűjtemény szűréséhez. Ha nincs megadva szülő, a metódus vissza fog térni Empty.

GetProperties()

Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs

Az ilyen típusú leíró által képviselt objektum tulajdonságleíróinak gyűjteményét adja vissza.

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

Válaszok

Az PropertyDescriptorCollection ilyen típusú leíró által képviselt objektum tulajdonságleírásait tartalmazza. Az alapértelmezett érték a Empty.

Megvalósítás

Attribútumok

Megjegyzések

Ha egy szülő egyéni típusú leírót ad át a CustomTypeDescriptor konstruktornak, a GetProperties metódus meghívja a szülő megfelelő metódusát.

Lásd még

A következőre érvényes:

GetProperties(Attribute[])

Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs
Forrás:
CustomTypeDescriptor.cs

Az ilyen típusú leíró által képviselt objektum tulajdonságleíróinak szűrt gyűjteményét adja vissza.

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

Paraméterek

attributes
Attribute[]

A szűrőként használandó attribútumok tömbje. Ez lehet null.

Válaszok

Az PropertyDescriptorCollection ilyen típusú leíró által képviselt objektum tulajdonságleírásait tartalmazza. Az alapértelmezett érték a Empty.

Megvalósítás

Attribútumok

Megjegyzések

A attributes paraméter használatával szűrheti a visszaadott gyűjteményt. A szűrési szabályokkal kapcsolatban lásd: GetProperties.

Ha egy szülő egyéni típusú leírót ad át a CustomTypeDescriptor konstruktornak, a GetProperties metódus meghívja a szülő megfelelő metódusát.

Lásd még

A következőre érvényes: