TypeConverter.GetPropertiesSupported メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オブジェクトがプロパティをサポートしているかどうかを示す値を返します。
GetPropertiesSupported(ITypeDescriptorContext) |
指定したコンテキストを使用して、このオブジェクトがプロパティをサポートするかどうかを返します。 |
GetPropertiesSupported() |
オブジェクトがプロパティをサポートしているかどうかを示す値を返します。 |
- ソース:
- TypeConverter.cs
- ソース:
- TypeConverter.cs
- ソース:
- TypeConverter.cs
指定したコンテキストを使用して、このオブジェクトがプロパティをサポートするかどうかを返します。
public:
virtual bool GetPropertiesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext context);
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext? context);
abstract member GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetPropertiesSupported (context As ITypeDescriptorContext) As Boolean
パラメーター
- context
- ITypeDescriptorContext
書式指定コンテキストを提供する ITypeDescriptorContext。
戻り値
このオブジェクトのプロパティを見つけるために true
を呼び出す必要がある場合は GetProperties(Object)。それ以外の場合は false
。
注釈
このクラスに実装されると、このメソッドは常に false
を返します。
注意 (継承者)
変換する型がプロパティをサポートしている場合は、このメソッドをオーバーライドします。
コンバーターが呼び出される環境に関する追加情報を抽出するには、context
パラメーターを使用します。 このパラメーターには を指定null
できます。そのため、常にチェックします。 また、コンテキスト オブジェクトのプロパティも null
を返す場合があります。
こちらもご覧ください
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- ソース:
- TypeConverter.cs
- ソース:
- TypeConverter.cs
- ソース:
- TypeConverter.cs
オブジェクトがプロパティをサポートしているかどうかを示す値を返します。
public:
bool GetPropertiesSupported();
public bool GetPropertiesSupported ();
member this.GetPropertiesSupported : unit -> bool
Public Function GetPropertiesSupported () As Boolean
戻り値
このオブジェクトのプロパティを見つけるために true
を呼び出す必要がある場合は GetProperties(Object)。それ以外の場合は false
。
注釈
このクラスに実装されると、このメソッドは常に false
を返します。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。