PropertyTab.GetProperties 方法

定義

取得指定元件的屬性。

多載

GetProperties(Object)

取得指定元件的屬性。

GetProperties(Object, Attribute[])

取得符合指定屬性 (attribute) 之指定元件的屬性 (property)。

GetProperties(ITypeDescriptorContext, Object, Attribute[])

取得符合指定屬性 (attribute) 和內容之指定元件的屬性 (property)。

GetProperties(Object)

取得指定元件的屬性。

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

參數

component
Object

要擷取其屬性的元件。

傳回

包含元件屬性的 PropertyDescriptorCollection

適用於

GetProperties(Object, Attribute[])

取得符合指定屬性 (attribute) 之指定元件的屬性 (property)。

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

參數

component
Object

要擷取屬性的元件。

attributes
Attribute[]

類型 Attribute 的陣列,表示要擷取之屬性 (property) 的屬性 (attribute)。

傳回

包含屬性的 PropertyDescriptorCollection

適用於

GetProperties(ITypeDescriptorContext, Object, Attribute[])

取得符合指定屬性 (attribute) 和內容之指定元件的屬性 (property)。

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

參數

context
ITypeDescriptorContext

ITypeDescriptorContext,表示要擷取屬性的內容。

component
Object

要擷取屬性的元件。

attributes
Attribute[]

類型 Attribute 的陣列,表示要擷取之屬性 (property) 的屬性 (attribute)。

傳回

PropertyDescriptorCollection,其中包含符合指定內容和屬性 (attribute) 的屬性 (property)。

適用於