初始化 CodeWindowManager 类。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
语法
声明
Public Sub New ( _
service As LanguageService, _
codeWindow As IVsCodeWindow, _
source As Source _
)
public CodeWindowManager(
LanguageService service,
IVsCodeWindow codeWindow,
Source source
)
参数
- service
类型:Microsoft.VisualStudio.Package.LanguageService
[in] 委托语言服务的 LanguageService 对象。
- codeWindow
类型:Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow
[in] 将由 CodeWindowManager 类管理 Visual Studio 提供的 IVsCodeWindow 对象。
- source
类型:Microsoft.VisualStudio.Package.Source
[in] Source 对象与在代码窗口中显示的源文件。
备注
此构造函数也称为 LanguageService.CreateDocumentProperties 获取表示源文件中的属性的 DocumentProperties 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。