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
- 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.
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.