Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio SDK
IVsShell Interface

Updated: November 2007

Provides access to the fundamental environment services, specifically those dealing with VSPackages and the registry.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Visual Basic (Declaration)
<GuidAttribute("FD9DC8E3-2FFC-446D-8C50-99CA4A3D2D1C")> _
<InterfaceTypeAttribute()> _
Public Interface IVsShell
Visual Basic (Usage)
Dim instance As IVsShell
C#
[GuidAttribute("FD9DC8E3-2FFC-446D-8C50-99CA4A3D2D1C")]
[InterfaceTypeAttribute()]
public interface IVsShell
Visual C++
[GuidAttribute(L"FD9DC8E3-2FFC-446D-8C50-99CA4A3D2D1C")]
[InterfaceTypeAttribute()]
public interface class IVsShell
JScript
public interface IVsShell

Direct manipulation of other VSPackages is discouraged. The recommended procedure is for the VSPackage to proffer services, using the SProfferService service, which are then consumed by other VSPackages sharing the environment.

See illustrations of the implementation and/or calling of this interface in the samples Figures Language Service, Figures Edit, Solution Extender, Options Package, Basic Edit Sample, Basic Project, and Figures Project.

Notes to Callers:

Call IVsShell in conjunction with the environment service, SVsShell, when needing to implement VSPackages, projects, editors, and other entities that require access to local registry information or directly manipulate other VSPackages.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker