CustomTypeDescriptor 构造函数

定义

初始化 CustomTypeDescriptor 类的新实例。

重载

CustomTypeDescriptor()

初始化 CustomTypeDescriptor 类的新实例。

CustomTypeDescriptor(ICustomTypeDescriptor)

使用父级自定义类型说明符初始化 CustomTypeDescriptor 类的新实例。

CustomTypeDescriptor()

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

初始化 CustomTypeDescriptor 类的新实例。

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

注解

此构造函数等效于使用 参数null调用另CustomTypeDescriptor.CustomTypeDescriptor一个构造函数。

使用此构造函数创建的 的所有 CustomTypeDescriptor 方法都将返回默认值。

另请参阅

适用于

CustomTypeDescriptor(ICustomTypeDescriptor)

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

使用父级自定义类型说明符初始化 CustomTypeDescriptor 类的新实例。

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)

参数

parent
ICustomTypeDescriptor

父级自定义类型说明符。

注解

parent如果 参数为 null,则所有CustomTypeDescriptor方法都将返回默认值。 否则,所有 CustomTypeDescriptor 方法都将委托给 的方法 parent

大多数 CustomTypeDescriptor 方法默认返回 null 。 下表显示了默认情况下不返回的方法的返回 null 值。

方法 默认返回值
GetAttributes ) (AttributeCollection.Empty 空属性集合。
GetConverter 默认 TypeConverter 实例。
GetEvents ) (EventDescriptorCollection.Empty 空事件集合。
GetProperties ) (PropertyDescriptorCollection.Empty 空属性集合。

另请参阅

适用于