TypeDescriptor.GetDefaultProperty メソッド

定義

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

オーバーロード

GetDefaultProperty(Type)

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

GetDefaultProperty(Object, Boolean)

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

GetDefaultProperty(Object)

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

GetDefaultProperty(Type)

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

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

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(Type ^ componentType);
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)

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

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

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

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

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

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

こちらもご覧ください

適用対象