Share via


DTE2.Quit Method

Definition

Closes the Visual Studio environment.

public:
 void Quit();
public:
 void Quit();
void Quit();
[System.Runtime.InteropServices.DispId(207)]
public void Quit ();
[<System.Runtime.InteropServices.DispId(207)>]
abstract member Quit : unit -> unit
Public Sub Quit ()

Implements

Attributes

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  

Remarks

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

Applies to