Share via


TypeDescriptor.CreateProperty Yöntem

Tanım

Bir bileşenin mevcut özelliği için yeni bir özellik tanımlayıcısı oluşturur.

Aşırı Yüklemeler

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

Belirtilen özellik adını, türünü ve öznitelik dizisini kullanarak bir özellik tanımlayıcısı oluşturur ve bir türe dinamik olarak bağlar.

CreateProperty(Type, PropertyDescriptor, Attribute[])

Belirtilen mevcut PropertyDescriptor ve öznitelik dizisini kullanarak mevcut bir özellik tanımlayıcısından yeni bir özellik tanımlayıcısı oluşturur.

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

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Belirtilen özellik adını, türünü ve öznitelik dizisini kullanarak bir özellik tanımlayıcısı oluşturur ve bir türe dinamik olarak bağlar.

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

Parametreler

componentType
Type

Type Özelliğin üyesi olduğu bileşenin öğesi.

name
String

Özelliğin adı.

type
Type

Type özelliğinin.

attributes
Attribute[]

Bu özelliğin yeni öznitelikleri.

Döndürülenler

PropertyDescriptor Belirtilen türe bağlı olan ve belirtilen meta veri özniteliklerinin mevcut meta veri öznitelikleriyle birleştirilmiş olduğu bir.

Ayrıca bkz.

Şunlara uygulanır

CreateProperty(Type, PropertyDescriptor, Attribute[])

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Belirtilen mevcut PropertyDescriptor ve öznitelik dizisini kullanarak mevcut bir özellik tanımlayıcısından yeni bir özellik tanımlayıcısı oluşturur.

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

Parametreler

componentType
Type

Type Özelliğin üyesi olduğu bileşenin öğesi.

oldPropertyDescriptor
PropertyDescriptor

Mevcut özellik tanımlayıcısı.

attributes
Attribute[]

Bu özelliğin yeni öznitelikleri.

Döndürülenler

Belirtilen meta veri özniteliklerinin mevcut meta veri öznitelikleriyle birleştirilmesine sahip yeni PropertyDescriptor bir.

Ayrıca bkz.

Şunlara uygulanır