IDebugDocumentContext2
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at IDebugDocumentContext2.
This interface represents a position in a source file document.
IDebugDocumentContext2 : IUnknown
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.
Methods on several interfaces, most typically the GetDocumentContext and GetDocumentContext interfaces, return this interface.
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. |
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll
GetDocumentContext
GetDocumentContext
GetDocumentContext
GetDocumentContext