RectangleConverter.GetProperties Метод

Определение

Извлекает набор свойств для этого типа. По умолчанию тип не возвращает никаких свойств.

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object? value, Attribute[]? attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

Параметры

context
ITypeDescriptorContext

, ITypeDescriptorContext с помощью которого можно предоставить дополнительный контекст.

value
Object

Значение объекта для получения свойств.

attributes
Attribute[]

Массив Attribute объектов, описывающих свойства.

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

Набор свойств, которые должны быть предоставлены для этого типа данных. Если свойства не должны быть предоставлены, это может вернуться null. Реализация по умолчанию всегда возвращает значение null.

Атрибуты

Комментарии

Простая реализация этого метода может просто вызвать GetProperties метод для правильного типа данных.

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