Dispatcher.Run 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.

Pushes the main execution frame on the event queue of the Dispatcher.

C#
[System.Security.SecurityCritical]
public static void Run();
C#
public static void Run();
Attributes

Remarks

The Dispatcher processes the event queue in a loop. The loop is referred to as a frame. The initial loop is typically initiated by the application by calling Run.

The main execution frame will continue until the Dispatcher is shutdown.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10