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
參數
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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。