Bagikan melalui


CustomTypeDescriptor Konstruktor

Definisi

Menginisialisasi instans baru kelas CustomTypeDescriptor.

Overload

CustomTypeDescriptor()

Menginisialisasi instans baru kelas CustomTypeDescriptor.

CustomTypeDescriptor(ICustomTypeDescriptor)

Menginisialisasi instans CustomTypeDescriptor baru kelas menggunakan pendeskripsi jenis kustom induk.

CustomTypeDescriptor()

Sumber:
CustomTypeDescriptor.cs
Sumber:
CustomTypeDescriptor.cs
Sumber:
CustomTypeDescriptor.cs

Menginisialisasi instans baru kelas CustomTypeDescriptor.

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

Keterangan

Konstruktor ini setara dengan memanggil konstruktor lain CustomTypeDescriptor.CustomTypeDescriptor dengan parameter yaitu null.

Semua metode yang CustomTypeDescriptor dibuat dengan konstruktor ini akan mengembalikan nilai default.

Lihat juga

Berlaku untuk

CustomTypeDescriptor(ICustomTypeDescriptor)

Sumber:
CustomTypeDescriptor.cs
Sumber:
CustomTypeDescriptor.cs
Sumber:
CustomTypeDescriptor.cs

Menginisialisasi instans CustomTypeDescriptor baru kelas menggunakan pendeskripsi jenis kustom induk.

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)

Parameter

parent
ICustomTypeDescriptor

Deskriptor jenis kustom induk.

Keterangan

parent Jika parameter adalah null, semua CustomTypeDescriptor metode akan mengembalikan nilai default. Jika tidak, semua CustomTypeDescriptor metode akan mendelegasikan ke metode parent.

Sebagian besar CustomTypeDescriptor metode kembali null secara default. Tabel berikut ini memperlihatkan nilai yang dikembalikan untuk metode yang tidak dikembalikan null secara default.

Metode Nilai pengembalian default
GetAttributes Koleksi atribut kosong (AttributeCollection.Empty).
GetConverter Instans default TypeConverter .
GetEvents Kumpulan peristiwa kosong (EventDescriptorCollection.Empty).
GetProperties Kumpulan properti kosong (PropertyDescriptorCollection.Empty).

Lihat juga

Berlaku untuk