NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICustomTypeDescriptor.GetPropertyOwner

Retrieves the object that directly depends on this value being edited. This is generally the object that is required for the PropertyDescriptor's GetValue and SetValue methods. If 'null' is passed for the PropertyDescriptor, the ICustomComponent descripotor implemementation should return the default object, that is the main object that exposes the properties and attributes,

[Visual Basic]
Function GetPropertyOwner( _
   ByVal pd As PropertyDescriptor _
) As Object
[C#]
object GetPropertyOwner(
   PropertyDescriptor pd
);
[C++]
Object* GetPropertyOwner(
   PropertyDescriptor* pd
) = 0;
[JScript]
function GetPropertyOwner(
   pd : PropertyDescriptor
) : Object;

Parameters

pd
The PropertyDescriptor to find the owner for. This call should return an object such that the call "pd.GetValue(GetPropertyOwner(pd));" will generally succeed. If 'null' is passed for pd, the main object that owns the properties and attributes should be returned.

Return Value

valueOwner

See Also

ICustomTypeDescriptor Interface | ICustomTypeDescriptor Members | System.ComponentModel Namespace