Share via


IDebugField::GetContainer

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method gets the container of a field.

Syntax

HRESULT GetContainer(   
   IDebugContainerField** ppContainerField  
);  
int GetContainer(  
   out IDebugContainerField ppContainerField  
);  

Parameters

ppContainerField
[out] Returns the container as represented by the IDebugContainerField interface.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

If this field does not have a container, the returned ppContainerField will be a null value.

See Also

IDebugField
IDebugContainerField