Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.IInstalledExtension
The 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.