PropertyTab.GetProperties Method

Definition

Gets the properties of the specified component.

Overloads

GetProperties(Object)

Gets the properties of the specified component.

GetProperties(Object, Attribute[])

Gets the properties of the specified component that match the specified attributes.

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Gets the properties of the specified component that match the specified attributes and context.

GetProperties(Object)

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

Gets the properties of the specified component.

C#
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(object component);
C#
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties(object component);

Parameters

component
Object

The component to retrieve the properties of.

Returns

A PropertyDescriptorCollection that contains the properties of the component.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 1.1, 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, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetProperties(Object, Attribute[])

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

Gets the properties of the specified component that match the specified attributes.

C#
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
C#
public abstract System.ComponentModel.PropertyDescriptorCollection? GetProperties(object component, Attribute[]? attributes);
C#
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, Attribute[]? attributes);

Parameters

component
Object

The component to retrieve properties from.

attributes
Attribute[]

An array of type Attribute that indicates the attributes of the properties to retrieve.

Returns

A PropertyDescriptorCollection that contains the properties.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 1.1, 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, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

Gets the properties of the specified component that match the specified attributes and context.

C#
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object component, Attribute[] attributes);
C#
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
C#
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that indicates the context to retrieve properties from.

component
Object

The component to retrieve properties from.

attributes
Attribute[]

An array of type Attribute that indicates the attributes of the properties to retrieve.

Returns

A PropertyDescriptorCollection that contains the properties matching the specified context and attributes.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 1.1, 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, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10