CustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an object that contains the property described by the specified property descriptor.
public:
virtual System::Object ^ GetPropertyOwner(System::ComponentModel::PropertyDescriptor ^ pd);
public virtual object GetPropertyOwner (System.ComponentModel.PropertyDescriptor pd);
public virtual object? GetPropertyOwner (System.ComponentModel.PropertyDescriptor? pd);
abstract member GetPropertyOwner : System.ComponentModel.PropertyDescriptor -> obj
override this.GetPropertyOwner : System.ComponentModel.PropertyDescriptor -> obj
Public Overridable Function GetPropertyOwner (pd As PropertyDescriptor) As Object
Parameters
The property descriptor for which to retrieve the owning object.
Returns
An Object that owns the given property specified by the type descriptor. The default is null
.
Implements
Remarks
If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetPropertyOwner method will call the parent's corresponding method.