The GetContainer method of the IRemoteField interface returns an IRemoteContainerField interface representing this field’s container.
HRESULT GetContainer(IRemoteContainerField **ppContainer)
[out] ppContainer | Returns the field representing the field’s container. |
S_OK Success.
Field Type | Container |
Global container | None |
Global class | Global container |
Inner class | Global container |
Class data field | Class |
Method | Class |
Method parameter | Method |
Method local variable | Method |
To obtain the IRemoteClassField of the class containing an inner class, call IRemoteInnerClassField::GetOuterClass. To obtain the IRemoteField of the global container field, call GetType on the IRemoteContainerObject interface returned from IRemoteProcess::GetGlobalContainerObject. GetContainer returns a NULL IRemoteContainerField and S_OK for the global container field.