IVsCodeDefView::SetContext Method (IVsCodeDefViewContext^)

 

Sets the context of the Code Definition tool window.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int SetContext(
	IVsCodeDefViewContext^ pIVsCodeDefViewContext
)

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.

SetContext has no effect when the tool window is active.

From vsshell80.idl:

HRESULT IVsCodeDefView::SetContext(
   [in] IVsCodeDefViewContext *pIVsCodeDefViewContext
);
Return to top
Show: