IVsExtensionManager.RevertUninstall Method
Reverts an uninstalled extension to an installed state.
Namespace: Microsoft.VisualStudio.ExtensionManager
Assembly: Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
'Declaração
Sub RevertUninstall ( _
extension As IInstalledExtension _
)
void RevertUninstall(
IInstalledExtension extension
)
void RevertUninstall(
IInstalledExtension^ extension
)
abstract RevertUninstall :
extension:IInstalledExtension -> unit
function RevertUninstall(
extension : IInstalledExtension
)
Parameters
- extension
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension
An extension that was passed to the Uninstall API.
Remarks
Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.
This API only succeeds for extensions that have been uninstalled through the Uninstall API. Furthermore, this API must be called before Extension Manager is restarted because pending uninstallations are cleaned up during initialization. Otherwise, a NotPendingDeletionException will be thrown.
.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.