IVsMonitorSelection2::GetEmptySelectionContext Method (IVsTrackSelectionEx^)

 

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)

int GetEmptySelectionContext(
	[OutAttribute] IVsTrackSelectionEx^% ppEmptySelCtxt
)

Parameters

ppEmptySelCtxt
Type: Microsoft.VisualStudio.Shell.Interop::IVsTrackSelectionEx^

[out] The emply selection context.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: