CustomTypeDescriptor.GetDefaultProperty 方法

定义

返回此类型说明符表示的对象的默认属性的属性描述符。Returns the property descriptor for the default property of the object represented by this type descriptor.

public:
 virtual System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty();
public virtual System.ComponentModel.PropertyDescriptor GetDefaultProperty ();
abstract member GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
override this.GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
Public Overridable Function GetDefaultProperty () As PropertyDescriptor

返回

PropertyDescriptor

此类型说明符表示的对象的默认属性的 PropertyDescriptorA PropertyDescriptor for the default property on the object represented by this type descriptor. 默认值为 nullThe default is null.

实现

注解

如果向构造函数传递了父自定义类型说明符 CustomTypeDescriptor ,则 GetDefaultProperty 方法将调用父级的相应方法。If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetDefaultProperty method will call the parent's corresponding method.

适用于

另请参阅