允许语言添加修饰到代码编辑器。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetCodeWindowManager ( _
pCodeWin As IVsCodeWindow, _
<OutAttribute> ByRef ppCodeWinMgr As IVsCodeWindowManager _
) As Integer
int GetCodeWindowManager(
IVsCodeWindow pCodeWin,
out IVsCodeWindowManager ppCodeWinMgr
)
int GetCodeWindowManager(
[InAttribute] IVsCodeWindow^ pCodeWin,
[OutAttribute] IVsCodeWindowManager^% ppCodeWinMgr
)
abstract GetCodeWindowManager :
pCodeWin:IVsCodeWindow *
ppCodeWinMgr:IVsCodeWindowManager byref -> int
function GetCodeWindowManager(
pCodeWin : IVsCodeWindow,
ppCodeWinMgr : IVsCodeWindowManager
) : int
参数
pCodeWin
类型:Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow[in] 请求的代码编辑器管理器的 IVsCodeWindow 接口。
ppCodeWinMgr
类型:Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindowManager%[out] 返回 IVsCodeWindowManager 对象。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsLanguageInfo::GetCodeWindowManager(
[in] IVsCodeWindow *pCodeWin,
[out] IVsCodeWindowManager **ppCodeWinMgr
);
Visual Studio 调用此方法获取代码窗口管理器如由 IVsCodeWindowManager 接口并让语言服务能访问代码窗口以便将可能的修饰例如一个下拉栏。 此方法是调用第二个方法,在语言包加载后 (第一种方法是在语言包的 SetSite 方法)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。