_Application.Quit Method
Closes all currently open windows.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
Sub Quit
'Usage
Dim instance As _Application
instance.Quit()
void Quit()
Remarks
The associated Outlook session is closed completely; the user is logged out of the messaging system and any changes to items not already saved are discarded.