संपादित करें

इसके माध्यम से साझा किया गया


CustomTypeDescriptor.GetProperties Method

Definition

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

Overloads

GetProperties()

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

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()

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

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

Applies to

GetProperties(Attribute[])

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

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);
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