Sdílet prostřednictvím


IVsMonitorSelection2.GetEmptySelectionContext(IVsTrackSelectionEx) Method

Definition

Retrieves the empty selection context.

public:
 int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx ^ % ppEmptySelCtxt);
public:
 int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx ^ &  ppEmptySelCtxt);
int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx const & & ppEmptySelCtxt);
public int GetEmptySelectionContext (out Microsoft.VisualStudio.Shell.Interop.IVsTrackSelectionEx ppEmptySelCtxt);
abstract member GetEmptySelectionContext : IVsTrackSelectionEx -> int
Public Function GetEmptySelectionContext (ByRef ppEmptySelCtxt As IVsTrackSelectionEx) As Integer

Parameters

ppEmptySelCtxt
IVsTrackSelectionEx

[out] The emply selection context.

Returns

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.

Applies to