Share via


IVsCodeDefView.SetContext(IVsCodeDefViewContext) Method

Definition

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  
);  

Applies to