Redigera

Dela via


CustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) Method

Definition

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

pd
PropertyDescriptor

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.

Applies to

See also