IDebugDocumentContext2

此接口表示源文件中的位置文档。

IDebugDocumentContext2 : IUnknown

实现者说明

调试引擎 (DE)实现此接口作为其一部分的源代码级别调试支持。 除了在源代码中的位置之外,该接口提供比较的上下文方法,并定位通过源代码文档。

调用方的说明

在一些接口,但最常见 IDebugStackFrame2:: GetDocumentContextIDebugCodeContext2:: GetDocumentContext 接口的方法,返回此接口。

方法按 Vtable 顺序

下表显示 IDebugDocumentContext2方法。

方法

说明

IDebugDocumentContext2:: GetDocument

获取包含此文档上下文的文档。

IDebugDocumentContext2:: GetName

获取包含此文档上下文文档的可显示的名称。

IDebugDocumentContext2:: EnumCodeContexts

检索所有代码上下文列表与此文档上下文。

IDebugDocumentContext2:: GetLanguageInfo

获取该语言与此文档上下文。

IDebugDocumentContext2:: GetStatementRange

获取此的文件语句之间文档上下文。

IDebugDocumentContext2:: GetSourceRange

获取此的文件源范围文档上下文。

IDebugDocumentContext2:: 比较

比较此文档上下文到特定数组文档上下文。

IDebugDocumentContext2:: 查找

由语句或行的许多移动文档上下文。

要求

标题:msdbg.h

命名空间:Microsoft.VisualStudio.Debugger.Interop

程序集:Microsoft.VisualStudio.Debugger.Interop.dll

请参见

参考

IDebugCanStopEvent2:: GetDocumentContext

IDebugActivateDocumentEvent2:: GetDocumentContext

IDebugStackFrame2:: GetDocumentContext

IDebugCodeContext2:: GetDocumentContext