Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.