DynamicRecord.ICustomTypeDescriptor.GetPropertyOwner Method
Returns the object that contains the specified property.
Namespace: WebMatrix.Data
Assembly: WebMatrix.Data (in WebMatrix.Data.dll)
Syntax
'Declaration
Private Function GetPropertyOwner ( _
pd As PropertyDescriptor _
) As Object Implements ICustomTypeDescriptor.GetPropertyOwner
'Usage
Dim instance As DynamicRecord
Dim pd As PropertyDescriptor
Dim returnValue As Object
returnValue = CType(instance, ICustomTypeDescriptor).GetPropertyOwner(pd)
Object ICustomTypeDescriptor.GetPropertyOwner(
PropertyDescriptor pd
)
private:
virtual Object^ GetPropertyOwner(
PropertyDescriptor^ pd
) sealed = ICustomTypeDescriptor::GetPropertyOwner
private abstract GetPropertyOwner :
pd:PropertyDescriptor -> Object
private override GetPropertyOwner :
pd:PropertyDescriptor -> Object
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- pd
Type: System.ComponentModel.PropertyDescriptor
The property to get the owner of.
Return Value
Type: System.Object
This DynamicRecord instance.
Implements
ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)
Remarks
This member is an explicit interface member implementation. It can be used only when the DynamicRecord instance is cast to an ICustomTypeDescriptor interface.