TypeDescriptor.CreateProperty Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Új tulajdonságleírót hoz létre egy összetevő meglévő tulajdonságához.
Túlterhelések
| Name | Description |
|---|---|
| CreateProperty(Type, PropertyDescriptor, Attribute[]) |
Új tulajdonságleírót hoz létre egy meglévő tulajdonságleíróból a megadott meglévő PropertyDescriptor és attribútumtömb használatával. |
| CreateProperty(Type, String, Type, Attribute[]) |
Létrehoz és dinamikusan köt egy tulajdonságleírót egy típushoz a megadott tulajdonságnév, típus és attribútumtömb használatával. |
CreateProperty(Type, PropertyDescriptor, Attribute[])
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
Új tulajdonságleírót hoz létre egy meglévő tulajdonságleíróból a megadott meglévő PropertyDescriptor és attribútumtömb használatával.
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
Paraméterek
- oldPropertyDescriptor
- PropertyDescriptor
A meglévő tulajdonságleíró.
- attributes
- Attribute[]
A tulajdonság új attribútumai.
Válaszok
Egy új PropertyDescriptor , amely a megadott metaadat-attribútumokat egyesíti a meglévő metaadat-attribútumokkal.
- Attribútumok
Lásd még
A következőre érvényes:
CreateProperty(Type, String, Type, Attribute[])
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
Létrehoz és dinamikusan köt egy tulajdonságleírót egy típushoz a megadott tulajdonságnév, típus és attribútumtömb használatával.
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
Paraméterek
- name
- String
A tulajdonság neve.
- attributes
- Attribute[]
A tulajdonság új attribútumai.
Válaszok
A PropertyDescriptor megadott típushoz kötött, és a megadott metaadat-attribútumok egyesítve vannak a meglévő metaadat-attribútumokkal.
- Attribútumok