CustomTypeDescriptor.GetProperties Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a collection of property descriptors for the object represented by this type descriptor.
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. |
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.
- 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
.NET 9 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- 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
- GetProperties(Object, Attribute[])
- GetProperties
- PropertyDescriptorCollection
- GetEvents
- GetAttributes()
- GetDefaultProperty()
Applies to
.NET 9 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: