MultilineStringConverter.GetProperties(ITypeDescriptorContext, Object, Attribute[]) 方法
定义
使用指定的上下文和特性返回由 value 参数指定的数组类型的属性的集合。Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes.
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
一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.
- value
- Object
一个 Object,它指定要为其获取属性的数组类型。An Object that specifies the type of array for which to get properties.
返回
具有为此数据类型公开的属性的 PropertyDescriptorCollection,或者,如果没有属性,则为 null。A PropertyDescriptorCollection with the properties that are exposed for this data type, or null if there are no properties.