Share via


ISymUnmanagedMethod::GetScopeFromOffset Method

Gets the most enclosing lexical scope within this method that encloses the given offset. This can be used to start local variable searches.

HRESULT GetScopeFromOffset(
    [in]  ULONG32 offset,
    [out, retval] ISymUnmanagedScope**  pRetVal);

Parameters

  • offset
    [in] A ULONG that contains the offset.

  • pRetVal
    [out] A pointer that is set to the returned ISymUnmanagedScope interface.

Return Value

S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

Requirements

Header: CorSym.idl

See Also

Concepts

ISymUnmanagedMethod Interface