Language

TypeConverter.GetProperties メソッド

定義

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

オーバーロード

名前 説明
GetProperties(Object)

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

GetProperties(ITypeDescriptorContext, Object)

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

GetProperties(ITypeDescriptorContext, Object, Attribute[])

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

GetProperties(Object)

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

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

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ value);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection? GetProperties(object value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(object value);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")>]
member this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
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
ソース:
TypeConverter.cs
ソース:
TypeConverter.cs

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

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")>]
member this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj -> System.ComponentModel.PropertyDescriptorCollection
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
ソース:
TypeConverter.cs
ソース:
TypeConverter.cs

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

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
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);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
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を返すことができます。

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

  • Typeはワイルドカードとして扱われます。属性のセット内のTypeを持つプロパティと一致します。

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

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

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

こちらもご覧ください

適用対象