Rediger

Del via


ICustomTypeDescriptor.GetProperties Method

Definition

Returns the properties for this instance of a component.

Overloads

GetProperties()

Returns the properties for this instance of a component.

GetProperties(Attribute[])

Returns the properties for this instance of a component using the attribute array as a filter.

GetProperties()

Returns the properties for this instance of a component.

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

Returns

A PropertyDescriptorCollection that represents the properties for this component instance.

Remarks

The properties for this instance can differ from the set of properties that the class provides. For example, if the component is sited, the site can add or remove additional properties.

Implementers can return PropertyDescriptorCollection.Empty if no properties are specified. This method should never return null.

See also

Applies to

GetProperties(Attribute[])

Returns the properties for this instance of a component using the attribute array as a filter.

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

Parameters

attributes
Attribute[]

An array of type Attribute that is used as a filter.

Returns

A PropertyDescriptorCollection that represents the filtered properties for this component instance.

Remarks

The properties for this instance can differ from the set of properties that the class provides. For example, if the component is sited, the site can add or remove additional properties.

If an Attribute is specified in the attributes array and the property does not have an instance of the class for that attribute, the returned collection will include the property if the Attribute is the default property.

For filtering rules, see GetProperties.

See also

Applies to