Export (0) Print
Expand All

IVsExtensionManager.TryGetInstalledExtension Method

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

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

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

bool TryGetInstalledExtension(
	string identifier,
	out IInstalledExtension result


Type: System.String

The unique identifier of an extension.

Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension

An IExtension object that has the metadata of the queried extension if the extension is installed. Otherwise, returns null.

Return Value

Type: System.Boolean
True if the extension is installed; otherwise, false.

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

Community Additions

© 2014 Microsoft