IVsLanguageInfo.GetCodeWindowManager Method
Allows a language to add adornments to a code editor.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
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
Parameters
- pCodeWin
Type: Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow
[in] The IVsCodeWindow interface for the requested code editor manager.
- ppCodeWinMgr
Type: Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindowManager%
[out] Returns an IVsCodeWindowManager object.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsLanguageInfo::GetCodeWindowManager(
[in] IVsCodeWindow *pCodeWin,
[out] IVsCodeWindowManager **ppCodeWinMgr
);
Visual Studio calls this method to obtain a code window manager as represented by the IVsCodeWindowManager interface and to let the language service have access to the code window in order to add possible adornments such as a drop-down bar. This method is the second method called after a language package is loaded (the first method is the SetSite method on the language package itself).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.