IComNativeDescriptorHandler.GetProperties(Object, Attribute[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該元件具備指定屬性的屬性。
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。