Share via


CustomTypeDescriptor Konstruktory

Definice

Inicializuje novou instanci CustomTypeDescriptor třídy .

Přetížení

CustomTypeDescriptor()

Inicializuje novou instanci CustomTypeDescriptor třídy .

CustomTypeDescriptor(ICustomTypeDescriptor)

Inicializuje novou instanci CustomTypeDescriptor třídy pomocí nadřazeného popisovače vlastního typu.

CustomTypeDescriptor()

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Inicializuje novou instanci CustomTypeDescriptor třídy .

protected:
 CustomTypeDescriptor();
protected CustomTypeDescriptor ();
Protected Sub New ()

Poznámky

Tento konstruktor je ekvivalentní volání druhého CustomTypeDescriptor.CustomTypeDescriptor konstruktoru s parametrem , který je null.

Všechny metody vytvořené pomocí tohoto konstruktoru CustomTypeDescriptor vrátí výchozí hodnoty.

Viz také

Platí pro

CustomTypeDescriptor(ICustomTypeDescriptor)

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Inicializuje novou instanci CustomTypeDescriptor třídy pomocí nadřazeného popisovače vlastního typu.

protected:
 CustomTypeDescriptor(System::ComponentModel::ICustomTypeDescriptor ^ parent);
protected CustomTypeDescriptor (System.ComponentModel.ICustomTypeDescriptor parent);
protected CustomTypeDescriptor (System.ComponentModel.ICustomTypeDescriptor? parent);
new System.ComponentModel.CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor -> System.ComponentModel.CustomTypeDescriptor
Protected Sub New (parent As ICustomTypeDescriptor)

Parametry

parent
ICustomTypeDescriptor

Nadřazený popisovač vlastního typu.

Poznámky

parent Pokud je nullparametr , všechny CustomTypeDescriptor metody vrátí výchozí hodnoty. V opačném případě budou všechny CustomTypeDescriptor metody delegovat na metody nástroje parent.

Většina CustomTypeDescriptor metod se ve výchozím nastavení vrací null . Následující tabulka uvádí návratové hodnoty pro metody, které ve výchozím nastavení nevrací null .

Metoda Výchozí návratová hodnota
GetAttributes Prázdná kolekce atributů (AttributeCollection.Empty).
GetConverter Výchozí TypeConverter instance.
GetEvents Prázdná kolekce událostí (EventDescriptorCollection.Empty).
GetProperties Prázdná kolekce vlastností (PropertyDescriptorCollection.Empty).

Viz také

Platí pro