TypeDescriptor.CreateProperty Metodo

Definizione

Crea un nuovo descrittore di proprietà per una proprietà esistente di un componente.

Overload

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

Crea e associa dinamicamente un descrittore di proprietà a un tipo, usando il nome, il tipo e la matrice di attributi specificati.

CreateProperty(Type, PropertyDescriptor, Attribute[])

Crea un nuovo descrittore di proprietà da un descrittore di proprietà esistente, usando la matrice di attributi e esistente PropertyDescriptor specificata.

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

Crea e associa dinamicamente un descrittore di proprietà a un tipo, usando il nome, il tipo e la matrice di attributi specificati.

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

Parametri

componentType
Type

Oggetto Type del componente di cui la proprietà è membro.

name
String

Nome della proprietà.

type
Type

Oggetto Type della proprietà .

attributes
Attribute[]

Nuovi attributi per questa proprietà.

Valori restituiti

Oggetto PropertyDescriptor associato al tipo specificato e con gli attributi di metadati specificati uniti agli attributi di metadati esistenti.

Vedi anche

Si applica a

CreateProperty(Type, PropertyDescriptor, Attribute[])

Crea un nuovo descrittore di proprietà da un descrittore di proprietà esistente, usando la matrice di attributi e esistente PropertyDescriptor specificata.

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

Parametri

componentType
Type

Oggetto Type del componente di cui la proprietà è membro.

oldPropertyDescriptor
PropertyDescriptor

Descrittore di proprietà esistente.

attributes
Attribute[]

Nuovi attributi per questa proprietà.

Valori restituiti

PropertyDescriptor Nuovo oggetto con gli attributi di metadati specificati uniti agli attributi di metadati esistenti.

Vedi anche

Si applica a