Язык

SelectionRangeConverter.GetProperties Метод

Определение

Возвращает набор отфильтрованных свойств для SelectionRange типа.

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <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.")]
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value, Attribute[]? attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
[<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
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

Параметры

context
ITypeDescriptorContext

Объект, ITypeDescriptorContext предоставляющий контекст формата.

value
Object

Значение, Object указывающее тип массива, для которого необходимо получить свойства.

attributes
Attribute[]

Массив типа Attribute , который используется в качестве фильтра.

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

В случае успешного выполнения набор свойств, которые должны быть предоставлены для SelectionRange типа; в противном случае null.

Атрибуты

Комментарии

Реализация этого метода по умолчанию не использует context или value параметры, но просто ссылается на вызов метода TypeDescriptor.TypeDescriptor.GetProperties(Type, Attribute[])

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

См. также