ICustomTypeDescriptor.GetProperties メソッド

定義

コンポーネントのこのインスタンスのプロパティを返します。

オーバーロード

GetProperties()

コンポーネントのこのインスタンスのプロパティを返します。

GetProperties(Attribute[])

属性配列をフィルターとして使用して、コンポーネントのこのインスタンスのプロパティを返します。

GetProperties()

コンポーネントのこのインスタンスのプロパティを返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
public System.ComponentModel.PropertyDescriptorCollection GetProperties ();
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties () As PropertyDescriptorCollection

戻り値

このコンポーネント インスタンスのプロパティを表す PropertyDescriptorCollection

注釈

このインスタンスのプロパティは、クラスが提供するプロパティのセットとは異なる場合があります。 たとえば、コンポーネントがサイト化されている場合、サイトは追加のプロパティを追加または削除できます。

プロパティが指定されていない場合、実装者は を返 PropertyDescriptorCollection.Empty すことができます。 このメソッドは、 を返 nullすべきではありません。

こちらもご覧ください

適用対象

GetProperties(Attribute[])

属性配列をフィルターとして使用して、コンポーネントのこのインスタンスのプロパティを返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[] attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[]? attributes);
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

パラメーター

attributes
Attribute[]

フィルターとして使用される Attribute 型の配列。

戻り値

このコンポーネント インスタンスのフィルター処理したプロパティを表す PropertyDescriptorCollection

注釈

このインスタンスのプロパティは、クラスが提供するプロパティのセットとは異なる場合があります。 たとえば、コンポーネントがサイト化されている場合、サイトは追加のプロパティを追加または削除できます。

Attributeが配列でattributes指定されていて、 プロパティにその属性のクラスのインスタンスがない場合、 が既定のプロパティである場合Attribute、返されるコレクションには プロパティが含まれます。

フィルタールールについては、「」を参照してください GetProperties

こちらもご覧ください

適用対象