- pd
- A System.ComponentModel.PropertyDescriptor that represents the property whose owner is to be found.
An object that represents the owner of the specified property.
The ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) method retrieves the object that contains the property member that is described by System.ComponentModel.PropertyDescriptor parameter. Typically, this object is required for the PropertyDescriptor.GetValue(object) and PropertyDescriptor.SetValue(object, object) methods.
This method should return an object that you can use as follows:
Example
pd.GetValue(GetPropertyOwner(myPd));
If myPd is null, your implementation of the System.ComponentModel.ICustomTypeDescriptor interface should return the default object (typically, the base object that exposes the properties and attributes).