Dela via


AddInAdapter.Shutdown Method

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Shuts down the current add-in.

Namespace:  Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0 (in Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0.dll)

Syntax

'Declaration
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
<SecurityPermissionAttribute(SecurityAction.Assert, ControlThread := True)> _
Protected Overridable Sub Shutdown
'Usage
Me.Shutdown()
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
[SecurityPermissionAttribute(SecurityAction.Assert, ControlThread = true)]
protected virtual void Shutdown()
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
[SecurityPermissionAttribute(SecurityAction::Assert, ControlThread = true)]
protected:
virtual void Shutdown()
protected function Shutdown()

Remarks

This method enables the add-in to clean up resources.

Add-in developers must decide how to shut down the add-in. This Shutdown method just invokes the shutdown on the add-in view (IEntryPoint) in the situation where the pipeline calls the shutdown code for the add-in.

See Also

Reference

AddInAdapter Class

AddInAdapter Members

Microsoft.VisualStudio.Tools.Applications Namespace