EventsTab.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 all the properties of the event tab.
Overloads
GetProperties(Object, Attribute[]) |
Gets all the properties of the event tab that match the specified attributes. |
GetProperties(ITypeDescriptorContext, Object, Attribute[]) |
Gets all the properties of the event tab that match the specified attributes and context. |
GetProperties(Object, Attribute[])
Gets all the properties of the event tab that match the specified attributes.
public:
override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (object component, Attribute[] attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (object component, Attribute[]? attributes);
override this.GetProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (component As Object, attributes As Attribute()) As PropertyDescriptorCollection
Parameters
- component
- Object
The component to retrieve the properties of.
- attributes
- Attribute[]
An array of Attribute that indicates the attributes of the event properties to retrieve.
Returns
A PropertyDescriptorCollection that contains the properties. This will be an empty PropertyDescriptorCollection if the component does not implement an event service.
Remarks
The event tab properties are determined from the event properties returned from a component's event service.
Applies to
GetProperties(ITypeDescriptorContext, Object, Attribute[])
Gets all the properties of the event tab that match the specified attributes and context.
public:
override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object component, Attribute[] attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, component As Object, attributes As Attribute()) As PropertyDescriptorCollection
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext that can be used to gain context information.
- component
- Object
The component to retrieve the properties of.
- attributes
- Attribute[]
An array of type Attribute that indicates the attributes of the event properties to retrieve.
Returns
A PropertyDescriptorCollection that contains the properties. This will be an empty PropertyDescriptorCollection if the component does not implement an event service.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應