TypeDescriptor.CreateProperty Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir bileşenin mevcut özelliği için yeni bir özellik tanımlayıcısı oluşturur.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| CreateProperty(Type, PropertyDescriptor, Attribute[]) |
Belirtilen PropertyDescriptor mevcut ve öznitelik dizisini kullanarak var olan bir özellik tanımlayıcısından yeni bir özellik tanımlayıcısı oluşturur. |
| 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[])
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen PropertyDescriptor mevcut ve öznitelik dizisini kullanarak var olan 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);
[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
Parametreler
- oldPropertyDescriptor
- PropertyDescriptor
Mevcut özellik tanımlayıcısı.
- attributes
- Attribute[]
Bu özelliğin yeni öznitelikleri.
Döndürülenler
Belirtilen meta veri özniteliklerinin var olan meta veri öznitelikleriyle birleştirilmiş yeni PropertyDescriptor bir.
- Öznitelikler
Ayrıca bkz.
Şunlara uygulanır
CreateProperty(Type, String, Type, Attribute[])
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- 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);
[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
Parametreler
- name
- String
Özelliğin adı.
- 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.
- Öznitelikler