CoreDispatcher.ProcessEvents method

Applies to Windows and Windows Phone

Starts the dispatcher processing the input event queue for this instance of CoreWindow.

Syntax


Public Sub ProcessEvents(
  options As CoreProcessEventsOption 
)

Parameters

options

Type: CoreProcessEventsOption

The options for processing window events.

Remarks

This method is called from the main app loop defined in the IFrameworkView::Run method you implemented on your view provider. Typically, you call it once on each iteration of the loop. If you are creating a Windows Store app using DirectX with C++, call this method with CoreProcessEventsOption::ProcessAllIfPending.

If you are using another app model, such as XAML or JavaScript, you do not need to call this method. To avoid reentrancy scenarios in your Windows Store app using C++, C#, or Visual Basic with XAML, use the types and methods in the provided XAML namespaces, which call this method in the appropriate context.

Also, this method fails if called recursively. When it fails, call RoOriginateError to obtain the error and the message supplied to an attached debugger.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

CoreDispatcher

 

 

Show:
© 2014 Microsoft