TypeDescriptor.CreateProperty Metoda

Definice

Vytvoří nový popisovač vlastnosti pro existující vlastnost komponenty.

Přetížení

Name Description
CreateProperty(Type, PropertyDescriptor, Attribute[])

Vytvoří nový popisovač vlastnosti z existujícího popisovače vlastností pomocí zadaného existujícího PropertyDescriptor pole a pole atributů.

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

Vytvoří a dynamicky vytvoří popisovač vlastnosti na typ, pomocí zadaného názvu vlastnosti, typu a pole atributů.

CreateProperty(Type, PropertyDescriptor, Attribute[])

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vytvoří nový popisovač vlastnosti z existujícího popisovače vlastností pomocí zadaného existujícího PropertyDescriptor pole a pole atributů.

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

Parametry

componentType
Type

Komponenta Type , ve které je vlastnost členem.

oldPropertyDescriptor
PropertyDescriptor

Existující popisovač vlastnosti.

attributes
Attribute[]

Nové atributy pro tuto vlastnost.

Návraty

Nový PropertyDescriptor , který má zadané atributy metadat sloučené s existujícími atributy metadat.

Atributy

Viz také

Platí pro

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

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vytvoří a dynamicky vytvoří popisovač vlastnosti na typ, pomocí zadaného názvu vlastnosti, typu a pole atributů.

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

Parametry

componentType
Type

Komponenta Type , ve které je vlastnost členem.

name
String

Název vlastnosti

type
Type

The Type of the property.

attributes
Attribute[]

Nové atributy pro tuto vlastnost.

Návraty

Je PropertyDescriptor svázaný se zadaným typem a má zadané atributy metadat sloučené s existujícími atributy metadat.

Atributy

Viz také

Platí pro