TypeDescriptor.CreateProperty Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Erstellt einen neuen Eigenschaftsdeskriptor für eine vorhandene Eigenschaft einer Komponente.
Überlädt
| Name | Beschreibung |
|---|---|
| CreateProperty(Type, PropertyDescriptor, Attribute[]) |
Erstellt einen neuen Eigenschaftsdeskriptor aus einem vorhandenen Eigenschaftsdeskriptor mithilfe des angegebenen vorhandenen und PropertyDescriptor Attributarrays. |
| CreateProperty(Type, String, Type, Attribute[]) |
Erstellt und bindet einen Eigenschaftsdeskriptor dynamisch an einen Typ, wobei der angegebene Eigenschaftsname, der Typ und das Attributarray verwendet werden. |
CreateProperty(Type, PropertyDescriptor, Attribute[])
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
Erstellt einen neuen Eigenschaftsdeskriptor aus einem vorhandenen Eigenschaftsdeskriptor mithilfe des angegebenen vorhandenen und PropertyDescriptor Attributarrays.
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
Parameter
- oldPropertyDescriptor
- PropertyDescriptor
Der vorhandene Eigenschaftsdeskriptor.
- attributes
- Attribute[]
Die neuen Attribute für diese Eigenschaft.
Gibt zurück
Eine neue PropertyDescriptor , die die angegebenen Metadatenattribute mit den vorhandenen Metadatenattributen zusammengeführt hat.
- Attribute
Weitere Informationen
Gilt für:
CreateProperty(Type, String, Type, Attribute[])
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
- Quelle:
- TypeDescriptor.cs
Erstellt und bindet einen Eigenschaftsdeskriptor dynamisch an einen Typ, wobei der angegebene Eigenschaftsname, der Typ und das Attributarray verwendet werden.
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
Parameter
- name
- String
Der Name der Eigenschaft.
- attributes
- Attribute[]
Die neuen Attribute für diese Eigenschaft.
Gibt zurück
A PropertyDescriptor that is bound to the specified type and that has the specified metadata attributes merged with the existing metadata attributes.
- Attribute