語言

EventsTab.GetProperties 方法

定義

取得事件分頁的所有屬性。

多載

名稱 Description
GetProperties(Object, Attribute[])

取得事件分頁中所有符合指定屬性的屬性。

GetProperties(ITypeDescriptorContext, Object, Attribute[])

取得事件分頁中所有符合指定屬性和上下文的屬性。

GetProperties(Object, Attribute[])

來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs

取得事件分頁中所有符合指定屬性的屬性。

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

參數

component
Object

要取得 屬性的元件。

attributes
Attribute[]

該陣列 Attribute 代表要擷取的事件屬性屬性。

傳回

PropertyDescriptorCollection A 包含了以下性質。 若元件未實作事件服務,則該欄位為空 PropertyDescriptorCollection 函。

備註

事件分頁的屬性是根據元件事件服務回傳的事件屬性決定的。

適用於

GetProperties(ITypeDescriptorContext, Object, Attribute[])

來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs
來源:
EventsTab.cs

取得事件分頁中所有符合指定屬性和上下文的屬性。

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

參數

context
ITypeDescriptorContext

這可以用 ITypeDescriptorContext 來獲取上下文資訊。

component
Object

要取得 屬性的元件。

attributes
Attribute[]

一個型別 Attribute 為的陣列,表示要檢索的事件屬性屬性。

傳回

PropertyDescriptorCollection A 包含了以下性質。 若元件未實作事件服務,則該欄位為空 PropertyDescriptorCollection 函。

適用於