PropertyTab.GetProperties Method
Definition
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.
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)
Gets the properties of the specified component.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties (object component);
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties (object component);
abstract member GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (component As Object) As PropertyDescriptorCollection
Parameters
- component
- Object
The component to retrieve the properties of.
Returns
A PropertyDescriptorCollection that contains the properties of the component.
Applies to
GetProperties(Object, Attribute[])
Gets the properties of the specified component that match the specified attributes.
public:
abstract System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties (object component, Attribute[] attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties (object component, Attribute[]? attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection? GetProperties (object component, Attribute[]? attributes);
abstract member GetProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public MustOverride Function GetProperties (component As Object, attributes As Attribute()) As PropertyDescriptorCollection
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
GetProperties(ITypeDescriptorContext, Object, Attribute[])
Gets the properties of the specified component that match the specified attributes and context.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object component, Attribute[] attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
abstract member GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (context As ITypeDescriptorContext, component As Object, attributes As Attribute()) As PropertyDescriptorCollection
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om