IComNativeDescriptorHandler.GetProperties(Object, Attribute[]) 方法

定義

取得該元件具備指定屬性的屬性。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
abstract member GetProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (component As Object, attributes As Attribute()) As PropertyDescriptorCollection

參數

component
Object

要取得事件的元件。

attributes
Attribute[]

用來篩選屬性的屬性。

傳回

一組屬性描述子。component

備註

Note

這個 API 現在已經過時了。 非過時的替代方法是 ComObjectType

適用於