Share via


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)

Syntax

'Declaration
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

Parameters

Return Value

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

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

See Also

Reference

IVsExtensionManager Interface

Microsoft.VisualStudio.ExtensionManager Namespace