CustomTypeDescriptor.GetPropertyOwner Method (PropertyDescriptor)

 

Returns an object that contains the property described by the specified property descriptor.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public virtual object GetPropertyOwner(
	PropertyDescriptor pd
)

Parameters

pd
Type: System.ComponentModel.PropertyDescriptor

The property descriptor for which to retrieve the owning object.

Return Value

Type: System.Object

An Object that owns the given property specified by the type descriptor. The default is null.

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

.NET Framework
Available since 2.0
Return to top
Show: