Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
[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 its extension identifier (ID).
Namespace: Microsoft.VisualStudio.ExtensionManager
Assembly: Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
'Declaration
Function GetInstalledExtension ( _
identifier As String _
) As IInstalledExtension
IInstalledExtension GetInstalledExtension(
string identifier
)
IInstalledExtension^ GetInstalledExtension(
String^ identifier
)
abstract GetInstalledExtension :
identifier:string -> IInstalledExtension
function GetInstalledExtension(
identifier : String
) : IInstalledExtension
Parameters
identifier
Type: System.StringThe unique identifier of an extension.
Return Value
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension
An IExtension object that has the metadata of the queried extension.
Exceptions
| Exception | Condition |
|---|---|
| NotInstalledException | Thrown if an extension that has the given extension ID is not installed. |
Remarks
Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.