IVsExtensionManager.Disable Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Prevents an installed extension from being 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 Disable ( _
extension As IInstalledExtension _
) As RestartReason
RestartReason Disable(
IInstalledExtension extension
)
RestartReason Disable(
IInstalledExtension^ extension
)
abstract Disable :
extension:IInstalledExtension -> RestartReason
function Disable(
extension : IInstalledExtension
) : RestartReason
Parameters
extension
Type: Microsoft.VisualStudio.ExtensionManager.IInstalledExtensionThe extension to be disabled.
Return Value
Type: Microsoft.VisualStudio.ExtensionManager.RestartReason
PendingDisable 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.