Compartir a través de


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

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

See Also

Reference

IVsMonitorSelection2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace