다음을 통해 공유


IDebugMethodField::EnumStaticLocals

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

Creates an enumerator for static local variables of the method.

Syntax

HRESULT EnumStaticLocals(   
   IEnumDebugFields** ppLocals  
);  
int EnumStaticLocals(  
   out IEnumDebugFields ppLocals  
);  

Parameters

ppLocals
[out] Returns an IEnumDebugFields object representing the list of static locals. Returns a null value if there are no static locals.

Return Value

If successful, returns S_OK or returns S_FALSE if there are no static locals. Otherwise, returns an error code.

Remarks

Each element is an IDebugField object representing different types of static locals. Call the GetKind method on each object to determine exactly what kind of static local the object represents.

See Also

IDebugMethodField
IEnumDebugFields
IDebugField