Used to search for extensions to install and to manage installed extensions.
Namespace:  Microsoft.VisualStudio.ExtensionManager
Assembly:  Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
声明
<ComVisibleAttribute(True)> _
Public Interface IVsExtensionManager _
    Inherits INotifyPropertyChanged
[ComVisibleAttribute(true)]
public interface IVsExtensionManager : INotifyPropertyChanged
[ComVisibleAttribute(true)]
public interface class IVsExtensionManager : INotifyPropertyChanged
[<ComVisibleAttribute(true)>]
type IVsExtensionManager =  
    interface
        interface INotifyPropertyChanged
    end
public interface IVsExtensionManager extends INotifyPropertyChanged
The IVsExtensionManager type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | DidLoadUserExtensions | |
| .gif) | RestartRequired | Denotes whether the extension manager service has performed an operation that requires a restart. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | CreateExtension | Extension factory method. | 
| .gif) | CreateInstallableExtension | Factory method for extensions that are installable. | 
| .gif) | Disable | Prevents an installed extension from being loaded. This action may require a restart of Visual Studio. | 
| .gif) | Enable | Enables an extension to be loaded. This action may require a restart of Visual Studio. | 
| .gif) | FindMissingReferences | Checks whether all references of a given extension are installed. This method only checks for first-level dependencies and does not verify that references of references are installed. | 
| .gif) | GetEnabledExtensionContentLocations(String) | Queries for a collection of the paths of all content of a particular type that is included in enabled extensions. | 
| .gif) | GetEnabledExtensionContentLocations(String, IDictionary<String, String>) | Queries for a collection of the paths of all content of a particular type that is included in enabled extensions, and then filters the results by matching the given attributes to the XML attributes on the content node. | 
| .gif) | GetEnabledExtensions() | Queries for all enabled extensions under ExtensionsRoot. | 
| .gif) | GetEnabledExtensions(String) | Queries for all enabled extensions that contain a particular content type, for example, ItemTemplates or MEFComponents. | 
| .gif) | GetImmediateDependants | Finds all installed extensions that depend on the given extension. | 
| .gif) | GetInstalledExtension | Query for an installed extension by using its extension identifier (ID). | 
| .gif) | GetInstalledExtensions | Query for all installed extensions under ExtensionsRoot. | 
| .gif) | Install | Installs an extension to the ExtensionsRoot directory. | 
| .gif) | InstallAsync(IInstallableExtension, Boolean) | Asynchronously installs an extension to the ExtensionsRoot directory. Installations that are invoked by using this method cannot be canceled. | 
| .gif) | InstallAsync(IInstallableExtension, Boolean, Object) | Asynchronously installs an extension to the ExtensionsRoot directory. Installations that are invoked by using this method may be canceled by passing the userState object to the InstallAsyncCancel method. | 
| .gif) | InstallAsyncCancel | Cancels a pending asynchronous installation operation. | 
| .gif) | IsInstalled | Determines whether an extension is installed in any ExtensionsRoot directory. | 
| .gif) | RevertUninstall | Reverts an uninstalled extension to an installed state. | 
| .gif) | TryGetInstalledExtension | Query for an installed extension by using the extension identifier (ID). | 
| .gif) | Uninstall | Uninstalls an extension from the ExtensionsRoot directory. A restart of Visual Studio is required to complete the uninstallation. | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | InstallCompleted | Event that is fired when an InstallAsync operation completes, is canceled, or has an error. | 
| .gif) | InstallProgressChanged | Event that is fired as progress is made after an installation is started by using the InstallAsync method. | 
| .gif) | PropertyChanged | Occurs when a property value changes. (Inherited from INotifyPropertyChanged.) | 
Top
Remarks
Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.
Implement this interface in a custom extension manager service to enable search for and download of extensions from a web service that implements IVsExtensionRepository.