ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) 메서드

정의

지정된 속성 설명자가 설명하는 속성이 포함된 개체를 반환합니다.

public:
 System::Object ^ GetPropertyOwner(System::ComponentModel::PropertyDescriptor ^ pd);
public object GetPropertyOwner (System.ComponentModel.PropertyDescriptor pd);
public object? GetPropertyOwner (System.ComponentModel.PropertyDescriptor? pd);
abstract member GetPropertyOwner : System.ComponentModel.PropertyDescriptor -> obj
Public Function GetPropertyOwner (pd As PropertyDescriptor) As Object

매개 변수

pd
PropertyDescriptor

소유자가 있는 속성을 나타내는 PropertyDescriptor입니다.

반환

지정된 속성의 소유자를 나타내는 Object입니다.

설명

메서드는 GetPropertyOwner 매개 변수로 설명된 속성 멤버를 포함하는 개체를 PropertyDescriptor 검색합니다. 일반적으로 이 개체는 및 PropertyDescriptor.SetValue 메서드에 PropertyDescriptor.GetValue 필요합니다.

이 메서드는 다음과 같이 사용할 수 있는 개체를 반환해야 합니다.

pd.GetValue(GetPropertyOwner(myPd));  

가 이nullmyPd 인터페이스의 ICustomTypeDescriptor 구현은 기본 개체(일반적으로 속성 및 특성을 노출하는 기본 개체)를 반환해야 합니다.

적용 대상

추가 정보