CustomTypeDescriptor.GetProperties CustomTypeDescriptor.GetProperties CustomTypeDescriptor.GetProperties CustomTypeDescriptor.GetProperties Method

Definition

Returns a collection of property descriptors for the object represented by this type descriptor.

Overloads

GetProperties() GetProperties() GetProperties() GetProperties()

Returns a collection of property descriptors for the object represented by this type descriptor.

GetProperties(Attribute[]) GetProperties(Attribute[]) GetProperties(Attribute[]) GetProperties(Attribute[])

Returns a filtered collection of property descriptors for the object represented by this type descriptor.

Remarks

The GetProperties method returns a collection of property descriptors for the object this type descriptor is representing. An optional attribute array may be provided to filter the collection that is returned. If no parent is provided, the method will return Empty.

GetProperties() GetProperties() GetProperties() GetProperties()

Returns a collection of property descriptors for the object represented by this type descriptor.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties ();
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties () As PropertyDescriptorCollection

Returns

A PropertyDescriptorCollection containing the property descriptions for the object represented by this type descriptor. The default is Empty.

Implements

Remarks

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetProperties method will call the parent's corresponding method.

See also

GetProperties(Attribute[]) GetProperties(Attribute[]) GetProperties(Attribute[]) GetProperties(Attribute[])

Returns a filtered collection of property descriptors for the object represented by this type descriptor.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[] attributes);
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

Parameters

attributes
Attribute[]

An array of attributes to use as a filter. This can be null.

Returns

A PropertyDescriptorCollection containing the property descriptions for the object represented by this type descriptor. The default is Empty.

Implements

Remarks

You can use the attributes parameter to filter the collection that is returned. For filtering rules, see GetProperties.

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetProperties method will call the parent's corresponding method.

See also

Applies to