CustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) 方法

定義

傳回物件,包含指定的屬性描述項所描述的屬性。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);
abstract member GetPropertyOwner : System.ComponentModel.PropertyDescriptor -> obj
override this.GetPropertyOwner : System.ComponentModel.PropertyDescriptor -> obj
Public Overridable Function GetPropertyOwner (pd As PropertyDescriptor) As Object

參數

pd
PropertyDescriptor

要擷取主控物件的屬性描述項。The property descriptor for which to retrieve the owning object.

傳回

Object

Object,擁有這個型別描述項所指定的屬性。An Object that owns the given property specified by the type descriptor. 預設值為 nullThe default is null.

實作

備註

如果將父系自訂類型描述元傳遞至函式 CustomTypeDescriptorGetPropertyOwner 方法將會呼叫父系的對應方法。If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetPropertyOwner method will call the parent's corresponding method.

適用於

另請參閱