IVsCodeDefView.SetContext(IVsCodeDefViewContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the context of the CodeDefinition tool window.
public:
int SetContext(Microsoft::VisualStudio::Shell::Interop::IVsCodeDefViewContext ^ pIVsCodeDefViewContext);
public:
int SetContext(Microsoft::VisualStudio::Shell::Interop::IVsCodeDefViewContext ^ pIVsCodeDefViewContext);
int SetContext(Microsoft::VisualStudio::Shell::Interop::IVsCodeDefViewContext const & pIVsCodeDefViewContext);
public int SetContext (Microsoft.VisualStudio.Shell.Interop.IVsCodeDefViewContext pIVsCodeDefViewContext);
abstract member SetContext : Microsoft.VisualStudio.Shell.Interop.IVsCodeDefViewContext -> int
Public Function SetContext (pIVsCodeDefViewContext As IVsCodeDefViewContext) As Integer
Parameters
- pIVsCodeDefViewContext
- IVsCodeDefViewContext
[in] Pointer to the context IVsCodeDefViewContext interface) to use.
Returns
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
);