Freigeben über


IVsExtensionManager.Disable Method

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

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

See Also

Reference

IVsExtensionManager Interface

Microsoft.VisualStudio.ExtensionManager Namespace