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
'Declaration
Function SetContext ( _
pIVsCodeDefViewContext As IVsCodeDefViewContext _
) As Integer
int SetContext(
IVsCodeDefViewContext pIVsCodeDefViewContext
)
int SetContext(
[InAttribute] IVsCodeDefViewContext^ pIVsCodeDefViewContext
)
abstract SetContext :
pIVsCodeDefViewContext:IVsCodeDefViewContext -> int
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: 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
);
.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.