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

こちらもご覧ください

適用対象