PointConverter.GetProperties 方法

定义

检索此类型的属性集。 默认情况下,类型不返回任何属性。

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);
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
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

参数

context
ITypeDescriptorContext

可通过其提供附加上下文的类型说明符。

value
Object

要获取其属性的对象的值。

attributes
Attribute[]

描述属性的 Attribute 对象数组。

返回

为该数据类型公开的属性集。 如果未公开任何属性,则此方法可能返回 null。 默认实现始终返回 null

注解

此方法的简单实现只需调用 GetProperties 正确的数据类型即可。

适用于