使用运行文档表 (RDT)获取文档的内容提供路径文档。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Public Function GetRunningDocumentContents ( _
docCookie As UInteger _
) As String
public string GetRunningDocumentContents(
uint docCookie
)
参数
- docCookie
类型:System.UInt32
[in] 表示请求的唯一值。 RDT 文档。
返回值
类型:System.String
,如果文档未向 RDT 注册,文档内容在字符串的格式或 nullnull 引用(在 Visual Basic 中为 Nothing) 。
备注
如果 null 值返回,文档或未向 RDT 注册或文档不包含任何文本的操作。
cookie 值可以获取与 FindDocument 方法的调用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。