CustomTypeDescriptor.GetProperties Метод

Определение

Возвращает коллекцию дескрипторов свойств для объекта, представленного этим дескриптором типа.

Перегрузки

Имя Описание
GetProperties()

Возвращает коллекцию дескрипторов свойств для объекта, представленного этим дескриптором типа.

GetProperties(Attribute[])

Возвращает отфильтрованную коллекцию дескрипторов свойств для объекта, представленного этим дескриптором типа.

Комментарии

Метод GetProperties возвращает коллекцию дескрипторов свойств для объекта, представляющего дескриптор типа. Необязательный массив атрибутов может быть предоставлен для фильтрации возвращаемой коллекции. Если родительский объект не указан, метод возвращается Empty.

GetProperties()

Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs

Возвращает коллекцию дескрипторов свойств для объекта, представленного этим дескриптором типа.

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

Возвращаемое значение

Содержит PropertyDescriptorCollection описания свойств для объекта, представленного дескриптором этого типа. Значение по умолчанию — Empty.

Реализации

Атрибуты

Комментарии

Если в конструктор был передан CustomTypeDescriptor дескриптор родительского пользовательского типа, GetProperties метод вызовет соответствующий метод родительского типа.

См. также раздел

Применяется к

GetProperties(Attribute[])

Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs
Исходный код:
CustomTypeDescriptor.cs

Возвращает отфильтрованную коллекцию дескрипторов свойств для объекта, представленного этим дескриптором типа.

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

Параметры

attributes
Attribute[]

Массив атрибутов, используемых в качестве фильтра. Это может быть null.

Возвращаемое значение

Содержит PropertyDescriptorCollection описания свойств для объекта, представленного дескриптором этого типа. Значение по умолчанию — Empty.

Реализации

Атрибуты

Комментарии

Параметр можно использовать attributes для фильтрации возвращаемой коллекции. Правила фильтрации см. в разделе GetProperties.

Если в конструктор был передан CustomTypeDescriptor дескриптор родительского пользовательского типа, GetProperties метод вызовет соответствующий метод родительского типа.

См. также раздел

Применяется к