Tasks.ExitWindows Method

Definition

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.

Applies to