DispatcherFrame Constructor (Boolean)
Collapse the table of content
Expand the table of content

DispatcherFrame Constructor (Boolean)

 

Initializes a new instance of the DispatcherFrame class, by using the specified exit request flag.

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

public DispatcherFrame(
	bool exitWhenRequested
)

Parameters

exitWhenRequested
Type: System.Boolean

Indicates whether this frame will exit when all frames are requested to exit.

DispatcherFrame typically fall into two categories:

  • Long running, general purpose frames, that exit only when instructed to. These frames should exit when they are requested.

  • Short running, very specific frames that exit when an important criteria is met. These frames may consider not exiting when they are requested in favor of waiting for their exit criteria to be met. These frames should have a time-out associated with them.

  • At application shutdown, all frames are request to exit.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft