Edit

Share via


CustomTypeDescriptor.GetDefaultProperty Method

Definition

Returns the property descriptor for the default property of the object represented by this type descriptor.

public:
 virtual System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual System.ComponentModel.PropertyDescriptor? GetDefaultProperty();
public virtual System.ComponentModel.PropertyDescriptor GetDefaultProperty();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
override this.GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
abstract member GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
override this.GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
Public Overridable Function GetDefaultProperty () As PropertyDescriptor

Returns

A PropertyDescriptor for the default property on the object represented by this type descriptor. The default is null.

Implements

Attributes

Remarks

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetDefaultProperty method will call the parent's corresponding method.

Applies to

See also