共用方式為


IVsCodeWindow.GetViewClassID 方法

傳回文字的檢視類別,來變更或查詢。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function GetViewClassID ( _
    <OutAttribute> ByRef pclsidView As Guid _
) As Integer
int GetViewClassID(
    out Guid pclsidView
)
int GetViewClassID(
    [OutAttribute] Guid% pclsidView
)
abstract GetViewClassID : 
        pclsidView:Guid byref -> int
function GetViewClassID(
    pclsidView : Guid
) : int

參數

  • pclsidView
    類型:Guid%

    [] out文字檢視的類別識別項 (CLSID) 的指標。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

根據預設,程式碼] 視窗會使用 CLSID_VsTextView 的 [編輯] 窗格。

COM 簽章

從 textmgr.idl:

HRESULT IVsCodeWindow::GetViewClassID(
   [out] CLSID *pclsidView
);

.NET Framework 安全性

請參閱

參考

IVsCodeWindow 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間