This documentation is archived and is not being maintained.

Dispatcher.Run Method

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

Namespace:  System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

[UIPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public static void Run()
You cannot use methods in XAML.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0