IVsMonitorSelection2.GetEmptySelectionContext(IVsTrackSelectionEx) Methode

Definition

Ruft den leeren Auswahlkontext ab.

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

Parameter

ppEmptySelCtxt
IVsTrackSelectionEx

[out] Der leere Auswahlkontext.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

Der leere Auswahl Kontext verwaltet die Auswahl, wenn die integrierte Entwicklungsumgebung (Integrated Development Environment, IDE) leer ist, d. h., wenn keine anderen aktiven Fenster vorhanden sind. Dieser Auswahl Kontext ist immer der erste aktivierte Auswahl Kontext. Sie kann verwendet werden, um Elemente der Auswahl (VSSELELEMID), die Global verwaltet werden, per Push zu übersetzen. Solche globalen Elemente der Auswahl sollten nur mit dem-Objekt festgelegt werden EmptySelectionContext und sollten nicht für die Schnittstelle festgelegt werden, die IVsTrackSelectionEx einzelnen Objekten zugeordnet ist IVsWindowFrame .

Gilt für