Share via


CustomTypeDescriptor Oluşturucular

Tanım

CustomTypeDescriptor sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

CustomTypeDescriptor()

CustomTypeDescriptor sınıfının yeni bir örneğini başlatır.

CustomTypeDescriptor(ICustomTypeDescriptor)

Üst özel tür tanımlayıcısı kullanarak sınıfın CustomTypeDescriptor yeni bir örneğini başlatır.

CustomTypeDescriptor()

Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs

CustomTypeDescriptor sınıfının yeni bir örneğini başlatır.

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

Açıklamalar

Bu oluşturucu, diğer CustomTypeDescriptor.CustomTypeDescriptor oluşturucuyu olan bir parametreyle çağırmaya eşdeğerdir null.

Bu oluşturucuyla oluşturulan bir CustomTypeDescriptor öğesinin tüm yöntemleri varsayılan değerleri döndürür.

Ayrıca bkz.

Şunlara uygulanır

CustomTypeDescriptor(ICustomTypeDescriptor)

Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs

Üst özel tür tanımlayıcısı kullanarak sınıfın CustomTypeDescriptor yeni bir örneğini başlatır.

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)

Parametreler

parent
ICustomTypeDescriptor

Üst özel tür tanımlayıcısı.

Açıklamalar

parent parametresi isenull, tüm CustomTypeDescriptor yöntemler varsayılan değerleri döndürür. Aksi takdirde, tüm CustomTypeDescriptor yöntemler yöntemlerini parenttemsil eder.

Çoğu CustomTypeDescriptor yöntem varsayılan olarak döndürür null . Aşağıdaki tabloda, varsayılan olarak döndürmeyen null yöntemlerin dönüş değerleri gösterilmektedir.

Yöntem Varsayılan dönüş değeri
GetAttributes Boş bir öznitelik koleksiyonu (AttributeCollection.Empty).
GetConverter Varsayılan TypeConverter örnek.
GetEvents Boş bir olay koleksiyonu (EventDescriptorCollection.Empty).
GetProperties Boş bir özellik koleksiyonu (PropertyDescriptorCollection.Empty).

Ayrıca bkz.

Şunlara uygulanır