TypeDescriptor.CreateProperty メソッド

定義

コンポーネントの既存のプロパティのための新しいプロパティ記述子を作成します。

オーバーロード

CreateProperty(Type, String, Type, Attribute[])

指定したプロパティ名、型、属性の配列を使用して、プロパティ記述子を作成し、型に動的にバインドします。

CreateProperty(Type, PropertyDescriptor, Attribute[])

指定された既存の PropertyDescriptor と属性の配列を指定を使用して、既存のプロパティ記述子から新しいプロパティ記述子を作成します。

CreateProperty(Type, String, Type, Attribute[])

指定したプロパティ名、型、属性の配列を使用して、プロパティ記述子を作成し、型に動的にバインドします。

public:
 static System::ComponentModel::PropertyDescriptor ^ CreateProperty(Type ^ componentType, System::String ^ name, Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.PropertyDescriptor CreateProperty (Type componentType, string name, Type type, params Attribute[] attributes);
static member CreateProperty : Type * string * Type * Attribute[] -> System.ComponentModel.PropertyDescriptor
Public Shared Function CreateProperty (componentType As Type, name As String, type As Type, ParamArray attributes As Attribute()) As PropertyDescriptor

パラメーター

componentType
Type

プロパティのメンバーであるコンポーネントの Type

name
String

プロパティの名前。

type
Type

プロパティの Type です。

attributes
Attribute[]

このプロパティの新しい属性。

戻り値

既存のメタデータ属性とマージされた指定されたメタデータ属性を持つ、指定された型にバインドされた PropertyDescriptor

こちらもご覧ください

適用対象

CreateProperty(Type, PropertyDescriptor, Attribute[])

指定された既存の PropertyDescriptor と属性の配列を指定を使用して、既存のプロパティ記述子から新しいプロパティ記述子を作成します。

public:
 static System::ComponentModel::PropertyDescriptor ^ CreateProperty(Type ^ componentType, System::ComponentModel::PropertyDescriptor ^ oldPropertyDescriptor, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.PropertyDescriptor CreateProperty (Type componentType, System.ComponentModel.PropertyDescriptor oldPropertyDescriptor, params Attribute[] attributes);
static member CreateProperty : Type * System.ComponentModel.PropertyDescriptor * Attribute[] -> System.ComponentModel.PropertyDescriptor
Public Shared Function CreateProperty (componentType As Type, oldPropertyDescriptor As PropertyDescriptor, ParamArray attributes As Attribute()) As PropertyDescriptor

パラメーター

componentType
Type

プロパティのメンバーであるコンポーネントの Type

oldPropertyDescriptor
PropertyDescriptor

既存のプロパティ記述子。

attributes
Attribute[]

このプロパティの新しい属性。

戻り値

既存のメタデータ属性とマージされた指定されたメタデータ属性を持つ新しい PropertyDescriptor

こちらもご覧ください

適用対象