TypeDescriptor.GetDefaultProperty メソッド

定義

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

オーバーロード

名前 説明
GetDefaultProperty(Type)

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

GetDefaultProperty(Object, Boolean)

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

GetDefaultProperty(Object)

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

GetDefaultProperty(Type)

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

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(Type ^ componentType);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(Type componentType);
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (componentType As Type) As PropertyDescriptor

パラメーター

componentType
Type

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

返品

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

注釈

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

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

こちらもご覧ください

適用対象

GetDefaultProperty(Object, Boolean)

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

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component, bool noCustomTypeDesc);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component, bool noCustomTypeDesc);
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)

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

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component);
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object) As PropertyDescriptor

パラメーター

component
Object

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

返品

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

例外

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

注釈

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

こちらもご覧ください

適用対象