IDebugMethodField::GetGlobalContainer

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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

Gets the global container of the method.

Syntax

HRESULT GetGlobalContainer(
   IDebugClassField** ppClass
);
int GetGlobalContainer(
   out IDebugClassField ppClass
);

Parameters

ppClass
[out] Returns an IDebugClassField representing the module in which this method is defined.

Return Value

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

Remarks

The returned IDebugClassField object represents the entire module and is an artificial object, that is, the module itself does not have an actual class but it can be represented by an IDebugClassField object, allowing the various elements of the module to be enumerated and discovered.

See also