IVsLanguageInfo.GetCodeWindowManager 方法

允许语言添加修饰到代码编辑器。

命名空间:  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

参数

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsLanguageInfo::GetCodeWindowManager(
   [in] IVsCodeWindow *pCodeWin, 
   [out] IVsCodeWindowManager **ppCodeWinMgr
);

Visual Studio 调用此方法获取代码窗口管理器如由 IVsCodeWindowManager 接口并让语言服务能访问代码窗口以便将可能的修饰例如一个下拉栏。 此方法是调用第二个方法,在语言包加载后 (第一种方法是在语言包的 SetSite 方法)。

.NET Framework 安全性

请参阅

参考

IVsLanguageInfo 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间