Compartir a través de


IMonitorSelectionService.CurrentSelectionContainer (Propiedad)

Obtiene el contenedor de selección activo.

Espacio de nombres:  Microsoft.VisualStudio.Modeling.Shell
Ensamblado:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (en Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Sintaxis

'Declaración
ReadOnly Property CurrentSelectionContainer As Object
Object CurrentSelectionContainer { get; }

Valor de propiedad

Tipo: System.Object
El contenedor de selección activo.

Comentarios

Controladores de comandos que se derivan de la selección actual deben usar esta propiedad en lugar de la propiedad de CurrentWindow porque el contenedor de selección podría no ser la ventana detallada.

Seguridad de .NET Framework

Vea también

Referencia

IMonitorSelectionService Interfaz

Microsoft.VisualStudio.Modeling.Shell (Espacio de nombres)