Microsoft SDK for Java

IRemoteField::
GetContainer

The GetContainer method of the IRemoteField interface returns an IRemoteContainerField interface representing this field’s container.

Syntax

HRESULT GetContainer(IRemoteContainerField **ppContainer)

Parameters

[out] ppContainer Returns the field representing the field’s container.

Return Value

S_OK Success.

Containers of Each Type of Field

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.