IVsExtensionManager.Enable Method (IInstalledExtension)

 

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)

RestartReason Enable(
	IInstalledExtension extension
)

Parameters

extension
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtension

The extension to be enabled.

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.

Return to top
Show: