IVsMonitorSelection2.GetEmptySelectionContext Method
Retrieves the empty selection context.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function GetEmptySelectionContext ( _
<OutAttribute> ByRef ppEmptySelCtxt As IVsTrackSelectionEx _
) As Integer
int GetEmptySelectionContext(
out IVsTrackSelectionEx ppEmptySelCtxt
)
int GetEmptySelectionContext(
[OutAttribute] IVsTrackSelectionEx^% ppEmptySelCtxt
)
abstract GetEmptySelectionContext :
ppEmptySelCtxt:IVsTrackSelectionEx byref -> int
function GetEmptySelectionContext(
ppEmptySelCtxt : IVsTrackSelectionEx
) : int
Parameters
ppEmptySelCtxt
Type: Microsoft.VisualStudio.Shell.Interop.IVsTrackSelectionEx%[out] The emply selection context.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The Empty Selection Context manages the selection when the integrated development environment (IDE) is empty, that is, when there are no other windows active. This selection context is always the first selection context activated. It can be used to push elements of selection (VSSELELEMID) that are globally maintained. Such global elements of selection should only be set using the EmptySelectionContext object and should not be set on the IVsTrackSelectionEx interface associated with individual IVsWindowFrame objects.
.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.