Language

TypeDescriptor.CreateProperty メソッド

定義

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

オーバーロード

名前 説明
CreateProperty(Type, PropertyDescriptor, Attribute[])

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

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

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

CreateProperty(Type, PropertyDescriptor, Attribute[])

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

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

public:
 static System::ComponentModel::PropertyDescriptor ^ CreateProperty(Type ^ componentType, System::ComponentModel::PropertyDescriptor ^ oldPropertyDescriptor, ... cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor CreateProperty(Type componentType, System.ComponentModel.PropertyDescriptor oldPropertyDescriptor, params Attribute[] attributes);
public static System.ComponentModel.PropertyDescriptor CreateProperty(Type componentType, System.ComponentModel.PropertyDescriptor oldPropertyDescriptor, params Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
static member CreateProperty : Type * System.ComponentModel.PropertyDescriptor * Attribute[] -> System.ComponentModel.PropertyDescriptor
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 。

属性

こちらもご覧ください

適用対象

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

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

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

public:
 static System::ComponentModel::PropertyDescriptor ^ CreateProperty(Type ^ componentType, System::String ^ name, Type ^ type, ... cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor CreateProperty(Type componentType, string name, Type type, params Attribute[] attributes);
public static System.ComponentModel.PropertyDescriptor CreateProperty(Type componentType, string name, Type type, params Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
static member CreateProperty : Type * string * Type * Attribute[] -> System.ComponentModel.PropertyDescriptor
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 。

属性

こちらもご覧ください

適用対象