IVsCodeDefView.SetContext Method
Sets the context of the CodeDefinition tool window.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
Function SetContext ( _
pIVsCodeDefViewContext As IVsCodeDefViewContext _
) As Integer
'使用
Dim instance As IVsCodeDefView
Dim pIVsCodeDefViewContext As IVsCodeDefViewContext
Dim returnValue As Integer
returnValue = instance.SetContext(pIVsCodeDefViewContext)
int SetContext(
IVsCodeDefViewContext pIVsCodeDefViewContext
)
int SetContext(
[InAttribute] IVsCodeDefViewContext^ pIVsCodeDefViewContext
)
function SetContext(
pIVsCodeDefViewContext : IVsCodeDefViewContext
) : int
Parameters
pIVsCodeDefViewContext
Type: Microsoft.VisualStudio.Shell.Interop.IVsCodeDefViewContext[in] Pointer to the context IVsCodeDefViewContext interface) to use.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
SetContext has no effect when the tool window is active.
COM Signature
From vsshell80.idl:
HRESULT IVsCodeDefView::SetContext(
[in] IVsCodeDefViewContext *pIVsCodeDefViewContext
);
Permissions
- 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.