ICustomTypeDescriptor.GetProperties Yöntem

Tanım

Bir bileşenin bu örneğinin özelliklerini döndürür.

Aşırı Yüklemeler

Name Description
GetProperties()

Bir bileşenin bu örneğinin özelliklerini döndürür.

GetProperties(Attribute[])

Öznitelik dizisini filtre olarak kullanarak bir bileşenin bu örneğinin özelliklerini döndürür.

GetProperties()

Kaynak:
ICustomTypeDescriptor.cs
Kaynak:
ICustomTypeDescriptor.cs
Kaynak:
ICustomTypeDescriptor.cs

Bir bileşenin bu örneğinin özelliklerini döndürür.

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

Döndürülenler

PropertyDescriptorCollection Bu bileşen örneğinin özelliklerini temsil eden bir.

Öznitelikler

Açıklamalar

Bu örneğin özellikleri, sınıfın sağladığı özellik kümesinden farklı olabilir. Örneğin, bileşen sitelenmişse, site ek özellikler ekleyebilir veya kaldırabilir.

Hiçbir özellik belirtilmezse uygulayıcılar döndürebilir PropertyDescriptorCollection.Empty . Bu yöntem hiçbir zaman döndürmemelidir null.

Ayrıca bkz.

Şunlara uygulanır

GetProperties(Attribute[])

Kaynak:
ICustomTypeDescriptor.cs
Kaynak:
ICustomTypeDescriptor.cs
Kaynak:
ICustomTypeDescriptor.cs

Öznitelik dizisini filtre olarak kullanarak bir bileşenin bu örneğinin özelliklerini döndürür.

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

Parametreler

attributes
Attribute[]

Filtre olarak kullanılan tür Attribute dizisi.

Döndürülenler

PropertyDescriptorCollection Bu bileşen örneğinin filtrelenmiş özelliklerini temsil eden bir.

Öznitelikler

Açıklamalar

Bu örneğin özellikleri, sınıfın sağladığı özellik kümesinden farklı olabilir. Örneğin, bileşen sitelenmişse, site ek özellikler ekleyebilir veya kaldırabilir.

dizisinde Attribute bir attributes belirtilirse ve özelliği bu öznitelik için sınıfın bir örneğine sahip değilse, döndürülen koleksiyon varsayılan özellikse Attribute özelliğini içerir.

Filtreleme kuralları için bkz GetProperties. .

Ayrıca bkz.

Şunlara uygulanır