Nyelv

ICustomTypeDescriptor.GetProperties Metódus

Definíció

Egy összetevő jelen példányának tulajdonságait adja vissza.

Túlterhelések

Name Description
GetProperties()

Egy összetevő jelen példányának tulajdonságait adja vissza.

GetProperties(Attribute[])

Egy összetevő jelen példányának tulajdonságait adja vissza, amely szűrőként használja az attribútumtömböt.

GetProperties()

Forrás:
ICustomTypeDescriptor.cs
Forrás:
ICustomTypeDescriptor.cs
Forrás:
ICustomTypeDescriptor.cs

Egy összetevő jelen példányának tulajdonságait adja vissza.

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

Válaszok

Az PropertyDescriptorCollection összetevőpéldány tulajdonságait képviselő tulajdonság.

Attribútumok

Megjegyzések

A példány tulajdonságai eltérhetnek az osztály által biztosított tulajdonságoktól. Ha például az összetevő helyhez van állítva, a webhely további tulajdonságokat adhat hozzá vagy távolíthat el.

A megvalósítók akkor térhetnek vissza PropertyDescriptorCollection.Empty , ha nincs megadva tulajdonság. Ez a metódus soha nem térhet vissza null.

Lásd még

A következőre érvényes:

GetProperties(Attribute[])

Forrás:
ICustomTypeDescriptor.cs
Forrás:
ICustomTypeDescriptor.cs
Forrás:
ICustomTypeDescriptor.cs

Egy összetevő jelen példányának tulajdonságait adja vissza, amely szűrőként használja az attribútumtömböt.

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

Paraméterek

attributes
Attribute[]

Szűrőként használt típusú Attribute tömb.

Válaszok

Az PropertyDescriptorCollection összetevőpéldány szűrt tulajdonságait képviselő tulajdonság.

Attribútumok

Megjegyzések

A példány tulajdonságai eltérhetnek az osztály által biztosított tulajdonságoktól. Ha például az összetevő helyhez van állítva, a webhely további tulajdonságokat adhat hozzá vagy távolíthat el.

Ha a Attribute tömbben egy attributes adott tulajdonság van megadva, és a tulajdonság nem rendelkezik az attribútum osztálypéldányával, a visszaadott gyűjtemény tartalmazza a tulajdonságot, ha az Attribute alapértelmezett tulajdonság.

A szűrési szabályokkal kapcsolatban lásd: GetProperties.

Lásd még

A következőre érvényes: