ImageSourceTypeConverter.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);
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[]

一个特性数组,这些特性用于筛选返回的集合以排除不相关的属性。

返回

PropertyDescriptorCollection

一个包含为组件公开的属性描述的 PropertyDescriptorCollection;如果没有返回属性描述,则为 null

例外

从此类中而不是派生类中调用此方法。

注解

此方法未在此类中实现 - 除了引发异常外。 请参阅 继承者的说明

继承者说明

重写此方法以提供用于获取类型所选 PropertyDescriptor 对象的方法。 使用 context 参数提取有关调用此转换器的环境的附加信息。 使用 attributes 数组指定要包含或排除的属性。

适用于