IVsCodeWindow.GetViewClassID Method
Returns the text view class to change or query.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function GetViewClassID ( _
<OutAttribute> ByRef pclsidView As Guid _
) As Integer
'使用
Dim instance As IVsCodeWindow
Dim pclsidView As Guid
Dim returnValue As Integer
returnValue = instance.GetViewClassID(pclsidView)
int GetViewClassID(
out Guid pclsidView
)
int GetViewClassID(
[OutAttribute] Guid% pclsidView
)
abstract GetViewClassID :
pclsidView:Guid byref -> int
function GetViewClassID(
pclsidView : Guid
) : int
Parameters
- pclsidView
Type: System.Guid%
[out] Pointer to the class identifier (CLSID) of the text view.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
By default, the code window uses CLSID_VsTextView for the edit panes.
COM Signature
From textmgr.idl:
HRESULT IVsCodeWindow::GetViewClassID(
[out] CLSID *pclsidView
);
.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.