Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Query for an installed extension by using the extension identifier (ID).
Namespace: Microsoft.VisualStudio.ExtensionManager
Assembly: Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
'Declaration
Function TryGetInstalledExtension ( _
identifier As String, _
<OutAttribute> ByRef result As IInstalledExtension _
) As Boolean
bool TryGetInstalledExtension(
string identifier,
out IInstalledExtension result
)
bool TryGetInstalledExtension(
String^ identifier,
[OutAttribute] IInstalledExtension^% result
)
abstract TryGetInstalledExtension :
identifier:string *
result:IInstalledExtension byref -> bool
function TryGetInstalledExtension(
identifier : String,
result : IInstalledExtension
) : boolean
Parameters
identifier
Type: StringThe unique identifier of an extension.
result
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension%An IExtension object that has the metadata of the queried extension if the extension is installed. Otherwise, returns nulla null reference (Nothing in Visual Basic).
Return Value
Type: Boolean
True if the extension is installed; otherwise, false.
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.