Share via


ImageSourceTypeConverter.GetProperties 方法

定義

取得指定型別的屬性描述集合。

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

參數

context
ITypeDescriptorContext

提供內容資訊的物件。

value
Object

需要其屬性 (Property) 描述的物件。

attributes
Attribute[]

屬性 (Attribute) 陣列,用來篩選所傳回的集合以排除不相關的屬性 (Property)。

傳回

PropertyDescriptorCollection,包含為這個元件所公開的屬性描述;如果沒有傳回屬性描述,則為 null

例外狀況

這個方法是從這個類別呼叫,而不是從衍生類別呼叫。

備註

這個方法不會在此類別中實作 - 除了擲回例外狀況之外。 請參閱 繼承者的附注

給繼承者的注意事項

覆寫這個方法,以提供方法以取得型別的選取 PropertyDescriptor 物件。 context 參數可以用於擷取環境的其他資訊,而這個轉換子就是從該環境叫用的。 attributes使用陣列指定要包含或排除的屬性。

適用於