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

'宣言
Function SetContext ( _
    pIVsCodeDefViewContext As IVsCodeDefViewContext _
) As Integer
'使用
Dim instance As IVsCodeDefView
Dim pIVsCodeDefViewContext As IVsCodeDefViewContext
Dim returnValue As Integer

returnValue = instance.SetContext(pIVsCodeDefViewContext)
int SetContext(
    IVsCodeDefViewContext pIVsCodeDefViewContext
)
int SetContext(
    [InAttribute] IVsCodeDefViewContext^ pIVsCodeDefViewContext
)
function SetContext(
    pIVsCodeDefViewContext : IVsCodeDefViewContext
) : int

Parameters

Return Value

Type: System.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
);

Permissions

See Also

Reference

IVsCodeDefView Interface

IVsCodeDefView Members

Microsoft.VisualStudio.Shell.Interop Namespace