TypeConverter.GetProperties メソッド

定義

value パラメーターに指定された配列型のプロパティのコレクションを返します。

オーバーロード

GetProperties(Object)

value パラメーターに指定された配列型のプロパティのコレクションを返します。

GetProperties(ITypeDescriptorContext, Object)

指定したコンテキストを使用して、value パラメーターで指定された配列型のプロパティのコレクションを返します。

GetProperties(ITypeDescriptorContext, Object, Attribute[])

指定されたコンテキストと属性を使用して、値パラメーターで指定された配列型のプロパティのコレクションを返します。

GetProperties(Object)

ソース:
TypeConverter.cs
ソース:
TypeConverter.cs
ソース:
TypeConverter.cs

value パラメーターに指定された配列型のプロパティのコレクションを返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (object value);
public System.ComponentModel.PropertyDescriptorCollection? GetProperties (object value);
member this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (value As Object) As PropertyDescriptorCollection

パラメーター

value
Object

プロパティを取得する対象となる配列の型を指定する Object

戻り値

このデータ型について公開されているプロパティを持つ PropertyDescriptorCollection。または、プロパティがない場合は null

注釈

このクラスに実装されると、このメソッドは常に null を返します。

既定では、型はプロパティを返しません。 このメソッドの簡単な実装では、正しいデータ型を呼び出 GetProperties すことができます。

適用対象

GetProperties(ITypeDescriptorContext, Object)

ソース:
TypeConverter.cs
ソース:
TypeConverter.cs
ソース:
TypeConverter.cs

指定したコンテキストを使用して、value パラメーターで指定された配列型のプロパティのコレクションを返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object value);
public System.ComponentModel.PropertyDescriptorCollection? GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object value);
member this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (context As ITypeDescriptorContext, value As Object) As PropertyDescriptorCollection

パラメーター

context
ITypeDescriptorContext

書式指定コンテキストを提供する ITypeDescriptorContext

value
Object

プロパティを取得する対象となる配列の型を指定する Object

戻り値

このデータ型について公開されているプロパティを持つ PropertyDescriptorCollection。または、プロパティがない場合は null

注釈

コンバーターが呼び出される環境に関する追加情報を抽出するには、context パラメーターを使用します。 このパラメーターには を指定 nullできるので、常に確認してください。 また、コンテキスト オブジェクトのプロパティも null を返す場合があります。

このクラスに実装されると、このメソッドは常に null を返します。

既定では、型はプロパティを返しません。 このメソッドの簡単な実装では、正しいデータ型を呼び出 GetProperties すことができます。

こちらもご覧ください

適用対象

GetProperties(ITypeDescriptorContext, Object, Attribute[])

ソース:
TypeConverter.cs
ソース:
TypeConverter.cs
ソース:
TypeConverter.cs

指定されたコンテキストと属性を使用して、値パラメーターで指定された配列型のプロパティのコレクションを返します。

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

パラメーター

context
ITypeDescriptorContext

書式指定コンテキストを提供する ITypeDescriptorContext

value
Object

プロパティを取得する対象となる配列の型を指定する Object

attributes
Attribute[]

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

戻り値

このデータ型について公開されているプロパティを持つ PropertyDescriptorCollection。または、プロパティがない場合は null

注釈

このクラスに実装されると、このメソッドは常に null を返します。

注意 (継承者)

変換する型がプロパティをサポートしている場合は、このメソッドをオーバーライドします。

コンバーターが呼び出される環境に関する追加情報を抽出するには、context パラメーターを使用します。 このパラメーターには を指定 nullできるので、常に確認してください。 また、コンテキスト オブジェクトのプロパティも null を返す場合があります。

属性配列は、配列をフィルター処理するために使用されます。 属性には、 オブジェクトと Attribute オブジェクトをType混在させることができます。 フィルター処理は、次の規則によって定義されます。

  • Typeはワイルドカードとして扱われ、属性のセットに がType含まれるプロパティと一致します。

  • プロパティに同じクラスの が Attribute 含まれていない場合、プロパティは返される配列に含まれません。

  • 属性が の Attributeインスタンスである場合、プロパティは完全に一致している必要があります。または、返される配列に含まれません。

  • インスタンスが Attribute 指定され、それが既定のプロパティである場合、 プロパティに のインスタンス Attribute がない場合でも、返される配列に含まれます。

こちらもご覧ください

適用対象