Share via


ICorDebugILFrame::CanSetIP Method

Gets an HRESULT that indicates whether it is safe to set the instruction pointer to the specified offset location in Microsoft Intermediate Language (MSIL) code.

HRESULT CanSetIP (
    [in] ULONG32   nOffset
);

Parameters

  • nOffset
    [in] The desired setting for the instruction pointer.

Remarks

Use the CanSetIP method before calling the ICorDebugILFrame::SetIP Method method. If CanSetIP returns any HRESULT other than S_OK, you can still invoke ICorDebugILFrame::SetIP, but there is no guarantee that the debugger will continue the safe and correct execution of the code being debugged.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebugILFrame Interface