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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.