PropertiesTab.GetProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定元件的性質。
多載
| 名稱 | Description |
|---|---|
| GetProperties(Object, Attribute[]) |
取得指定元件的屬性,這些屬性與指定屬性相符。 |
| GetProperties(ITypeDescriptorContext, Object, Attribute[]) |
取得符合指定屬性與上下文的元件屬性。 |
GetProperties(Object, Attribute[])
取得指定元件的屬性,這些屬性與指定屬性相符。
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 包含了以下性質。
另請參閱
適用於
GetProperties(ITypeDescriptorContext, Object, Attribute[])
取得符合指定屬性與上下文的元件屬性。
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
要從中擷取屬性的元件。
傳回
包含符合指定上下文與屬性的屬性的 A PropertyDescriptorCollection 。