共用方式為


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 命名空間