This documentation is archived and is not being maintained.

IVsExtensionManager.GetInstalledExtension Method

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

Namespace:  Microsoft.VisualStudio.ExtensionManager
Assembly:  Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)

IInstalledExtension GetInstalledExtension(
	string identifier
)

Parameters

identifier
Type: System.String
The unique identifier of an extension.

Return Value

Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension
An IExtension object that has the metadata of the queried extension.

ExceptionCondition
NotInstalledException

Thrown if an extension that has the given extension ID is not installed.

Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.

Show: