Export (0) Print
Expand All

IVsExtensionManager Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

[ComVisibleAttribute(true)]
public interface IVsExtensionManager : INotifyPropertyChanged

The IVsExtensionManager type exposes the following members.

  NameDescription
Public propertyDidLoadUserExtensions
Public propertyRestartRequiredDenotes whether the extension manager service has performed an operation that requires a restart.
Top

  NameDescription
Public methodClose
Public methodCreateExtensionExtension factory method.
Public methodCreateInstallableExtensionFactory method for extensions that are installable.
Public methodDisablePrevents an installed extension from being loaded. This action may require a restart of Visual Studio.
Public methodEnableEnables an extension to be loaded. This action may require a restart of Visual Studio.
Public methodFindMissingReferencesChecks 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.
Public methodGetEnabledExtensionContentLocations(String)Queries for a collection of the paths of all content of a particular type that is included in enabled extensions.
Public methodGetEnabledExtensionContentLocations(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.
Public methodGetEnabledExtensions()Queries for all enabled extensions under ExtensionsRoot.
Public methodGetEnabledExtensions(String)Queries for all enabled extensions that contain a particular content type, for example, ItemTemplates or MEFComponents.
Public methodGetImmediateDependantsFinds all installed extensions that depend on the given extension.
Public methodGetInstalledExtensionQuery for an installed extension by using its extension identifier (ID).
Public methodGetInstalledExtensionsQuery for all installed extensions under ExtensionsRoot.
Public methodGetLastExtensionsChangedTimestamp
Public methodInstallInstalls an extension to the ExtensionsRoot directory.
Public methodInstallAsync(IInstallableExtension, Boolean)Asynchronously installs an extension to the ExtensionsRoot directory. Installations that are invoked by using this method cannot be canceled.
Public methodInstallAsync(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.
Public methodInstallAsyncCancelCancels a pending asynchronous installation operation.
Public methodIsInstalledDetermines whether an extension is installed in any ExtensionsRoot directory.
Public methodRevertUninstallReverts an uninstalled extension to an installed state.
Public methodTryGetInstalledExtensionQuery for an installed extension by using the extension identifier (ID).
Public methodUninstallUninstalls an extension from the ExtensionsRoot directory. A restart of Visual Studio is required to complete the uninstallation.
Top

  NameDescription
Public eventInstallCompletedEvent that is fired when an InstallAsync operation completes, is canceled, or has an error.
Public eventInstallProgressChangedEvent that is fired as progress is made after an installation is started by using the InstallAsync method.
Public eventPropertyChangedOccurs when a property value changes. (Inherited from INotifyPropertyChanged.)
Top

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.

Community Additions

ADD
Show:
© 2014 Microsoft