Tasks.ExitWindows Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes all open applications, quits Microsoft Windows, and logs the current user off.
public:
void ExitWindows();
public void ExitWindows ();
abstract member ExitWindows : unit -> unit
Public Sub ExitWindows ()
Remarks
This method doesn't save changes to open Microsoft Word documents; however, it does prompt you to save changes to open documents in other Windows-based applications.