EventsTab.GetProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得事件分頁的所有屬性。
多載
| 名稱 | 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
要取得 屬性的元件。
傳回
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
要取得 屬性的元件。
傳回
PropertyDescriptorCollection A 包含了以下性質。 若元件未實作事件服務,則該欄位為空 PropertyDescriptorCollection 函。