Share via


DTE2.Quit Method

Closes the Visual Studio environment.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
Sub Quit
'Usage
Dim instance As DTE2

instance.Quit()
void Quit()
void Quit()
function Quit()

Implements

_DTE.Quit()

Remarks

Quit shuts down the integrated development environment (IDE), but not the operating system.

Examples

Sub readyToQuit()
    msg = MsgBox("Are you ready to quit Visual Studio?", _
    MsgBoxStyle.YesNo)
    If msg = MsgBoxResult.Yes Then
        Quit()
    Else
        MsgBox("Continuing...")
    End If
End Sub

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

Quit Overload

EnvDTE80 Namespace