IDebugDocumentContext2
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
This interface represents a position in a source file document.
Syntax
IDebugDocumentContext2 : IUnknown
Notes for Implementers
The debug engine (DE) implements this interface as part of its support for source code level debugging. In addition to a position in source code, this interface supplies methods for comparing contexts and navigating through a source code document.
Notes for Callers
Methods on several interfaces, most typically the GetDocumentContext and GetDocumentContext interfaces, return this interface.
Methods in Vtable Order
The following table shows the methods of IDebugDocumentContext2
.
Method | Description |
---|---|
GetDocument | Gets the document that contains this document context. |
GetName | Gets the displayable name of the document that contains this document context. |
EnumCodeContexts | Retrieves a list of all code contexts associated with this document context. |
GetLanguageInfo | Gets the language associated with this document context. |
GetStatementRange | Gets the file statement range of this document context. |
GetSourceRange | Gets the file source range of this document context. |
Compare | Compares this document context to a given array of document contexts. |
Seek | Moves the document context by a given number of statements or lines. |
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll
See Also
GetDocumentContext
GetDocumentContext
GetDocumentContext
GetDocumentContext