CollectionConverter.GetProperties メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したコンテキストと属性を使用して、値パラメーターで指定された配列の型のプロパティのコレクションを取得します。
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
形式コンテキストを提供する ITypeDescriptorContext 。
返品
このデータ型に対して公開されるプロパティを含む PropertyDescriptorCollection 。プロパティがない場合は null 。 このメソッドは常に null を返します。
注釈
context パラメーターを使用すると、コンバーターが呼び出される環境に関する追加情報を抽出できます。 これは nullできるため、常に確認してください。 また、コンテキスト オブジェクトのプロパティは、 nullを返すことができます。
渡す属性配列は、配列のフィルター処理に使用されます。 属性には、 Type オブジェクトと Attribute オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。
プロパティに同じクラスの Attribute がない場合、プロパティは返される配列に含まれません。
属性が Attributeのインスタンスである場合、プロパティは完全に一致する必要があります。または、返される配列には含まれません。
Attribute インスタンスが指定され、それが既定のプロパティである場合、プロパティにAttributeのインスタンスがない場合でも、返される配列に含まれます。
コレクションはプロパティをサポートしていません。したがって、このメソッドは常に nullを返します。