Compartir a través de


DTE2.Quit Method

Closes the Visual Studio environment.

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

Syntax

'Declaration
Sub Quit
void Quit()
void Quit()
abstract Quit : unit -> unit
function 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

EnvDTE80 Namespace