IVsExtensionManager.Enable Method

Enables an extension to be loaded. This action may require a restart of Visual Studio.

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


Function Enable ( _
    extension As IInstalledExtension _
) As RestartReason
RestartReason Enable(
    IInstalledExtension extension
RestartReason Enable(
    IInstalledExtension^ extension
abstract Enable : 
        extension:IInstalledExtension -> RestartReason 
function Enable(
    extension : IInstalledExtension
) : RestartReason


Return Value

Type: Microsoft.VisualStudio.ExtensionManager.RestartReason
PendingEnable if a restart of Visual Studio is required; otherwise, None.


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

See Also


IVsExtensionManager Interface

Microsoft.VisualStudio.ExtensionManager Namespace