Partager via


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

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

See Also

Reference

IVsCodeDefView Interface

Microsoft.VisualStudio.Shell.Interop Namespace