IVsExtensionManager Interface

 

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

NameDescription
System_CAPS_pubpropertyDidLoadUserExtensions

System_CAPS_pubpropertyRestartRequired

Denotes whether the extension manager service has performed an operation that requires a restart.

NameDescription
System_CAPS_pubmethodClose()

System_CAPS_pubmethodCreateExtension(String)

Extension factory method.

System_CAPS_pubmethodCreateInstallableExtension(String)

Factory method for extensions that are installable.

System_CAPS_pubmethodDisable(IInstalledExtension)

Prevents an installed extension from being loaded. This action may require a restart of Visual Studio.

System_CAPS_pubmethodEnable(IInstalledExtension)

Enables an extension to be loaded. This action may require a restart of Visual Studio.

System_CAPS_pubmethodFindMissingReferences(IExtension)

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.

System_CAPS_pubmethodGetEnabledExtensionContentLocations(String)

Queries for a collection of the paths of all content of a particular type that is included in enabled extensions.

System_CAPS_pubmethodGetEnabledExtensionContentLocations(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.

System_CAPS_pubmethodGetEnabledExtensions()

Queries for all enabled extensions under ExtensionsRoot.

System_CAPS_pubmethodGetEnabledExtensions(String)

Queries for all enabled extensions that contain a particular content type, for example, ItemTemplates or MEFComponents.

System_CAPS_pubmethodGetImmediateDependants(IInstalledExtension)

Finds all installed extensions that depend on the given extension.

System_CAPS_pubmethodGetInstalledExtension(String)

Query for an installed extension by using its extension identifier (ID).

System_CAPS_pubmethodGetInstalledExtensions()

Query for all installed extensions under ExtensionsRoot.

System_CAPS_pubmethodGetLastExtensionsChangedTimestamp()

System_CAPS_pubmethodInstall(IInstallableExtension, Boolean)

Installs an extension to the ExtensionsRoot directory.

System_CAPS_pubmethodInstallAsync(IInstallableExtension, Boolean)

Asynchronously installs an extension to the ExtensionsRoot directory. Installations that are invoked by using this method cannot be canceled.

System_CAPS_pubmethodInstallAsync(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.

System_CAPS_pubmethodInstallAsyncCancel(Object)

Cancels a pending asynchronous installation operation.

System_CAPS_pubmethodIsInstalled(IExtension)

Determines whether an extension is installed in any ExtensionsRoot directory.

System_CAPS_pubmethodRevertUninstall(IInstalledExtension)

Reverts an uninstalled extension to an installed state.

System_CAPS_pubmethodTryGetInstalledExtension(String, IInstalledExtension)

Query for an installed extension by using the extension identifier (ID).

System_CAPS_pubmethodUninstall(IInstalledExtension)

Uninstalls an extension from the ExtensionsRoot directory. A restart of Visual Studio is required to complete the uninstallation.

NameDescription
System_CAPS_pubeventInstallCompleted

Event that is fired when an InstallAsync operation completes, is canceled, or has an error.

System_CAPS_pubeventInstallProgressChanged

Event that is fired as progress is made after an installation is started by using the InstallAsync method.

System_CAPS_pubeventPropertyChanged

(Inherited from INotifyPropertyChanged.)

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.

Return to top
Show: