Muokkaa

Jaa


IDebugDocumentPosition2

This interface represents an abstract position in a source file.

Syntax

IDebugDocumentPosition2 : IUnknown

Notes for Implementers

Visual Studio typically implements this interface. A debug engine (DE) would also implement this interface if it must supply its own source code (as when the DE implements the IDebugDocument2 interface).

Notes for Callers

This interface is passed in as an argument to EnumCodeContexts. It is also supplied as part of a BP_LOCATION union (specifically, a BP_LOCATION_CODE_FILE_LINE structure) that is in turn part of the BP_REQUEST_INFO structure, that is used in creating a pending breakpoint.

Methods in Vtable Order

The following table shows the methods of IDebugDocumentPosition2.

Method Description
GetFileName Gets the file name of the source file that contains this document position.
GetDocument Gets the containing document.
IsPositionInDocument Determines if this position is contained in the given document.
GetRange Gets the range for this document position.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also