TypeDescriptor.GetDefaultProperty メソッド

定義

コンポーネントの既定のプロパティを返します。

オーバーロード

名前 説明
GetDefaultProperty(Object, Boolean)

カスタム型記述子を持つ指定したコンポーネントの既定のプロパティを返します。

GetDefaultProperty(Object)

指定したコンポーネントの既定のプロパティを返します。

GetDefaultProperty(Type)

指定した種類のコンポーネントの既定のプロパティを返します。

GetDefaultProperty(Object, Boolean)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

カスタム型記述子を持つ指定したコンポーネントの既定のプロパティを返します。

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(object component, bool noCustomTypeDesc);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")>]
static member GetDefaultProperty : obj * bool -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : obj * bool -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object, noCustomTypeDesc As Boolean) As PropertyDescriptor

パラメーター

component
Object

既定のプロパティを取得するコンポーネント。

noCustomTypeDesc
Boolean

true カスタム型の説明情報を考慮しない場合。それ以外の場合は false

返品

既定のプロパティを持つ PropertyDescriptor 。プロパティがない場合は null

属性

例外

component は、プロセス間のリモート オブジェクトです。

注釈

component パラメーターがnull場合、このメソッドはnullを返します。

こちらもご覧ください

適用対象

GetDefaultProperty(Object)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

指定したコンポーネントの既定のプロパティを返します。

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(object component);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")>]
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object) As PropertyDescriptor

パラメーター

component
Object

既定のプロパティを取得するコンポーネント。

返品

既定のプロパティを持つ PropertyDescriptor 。プロパティがない場合は null

属性

例外

component は、プロセス間のリモート オブジェクトです。

注釈

component パラメーターがnull場合、このメソッドはnullを返します。

こちらもご覧ください

適用対象

GetDefaultProperty(Type)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

指定した種類のコンポーネントの既定のプロパティを返します。

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(Type ^ componentType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(Type componentType);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(Type componentType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (componentType As Type) As PropertyDescriptor

パラメーター

componentType
Type

プロパティを取得するクラスを表す Type

返品

既定のプロパティを持つ PropertyDescriptor 。プロパティがない場合は null

属性

注釈

オブジェクトのインスタンスがない場合にのみ、このバージョンのこのメソッドを呼び出します。

componentType パラメーターがnull場合、このメソッドはnullを返します。

こちらもご覧ください

適用対象