Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Dispatcher.ValidatePriority Method (DispatcherPriority, String)

 

Determines whether the specified DispatcherPriority is a valid priority.

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

public static void ValidatePriority(
	DispatcherPriority priority,
	string parameterName
)

Parameters

priority
Type: System.Windows.Threading.DispatcherPriority

The priority to check.

parameterName
Type: System.String

A string that will be returned by the exception that occurs if the priority is invalid.

Exception Condition
InvalidEnumArgumentException

priority is not a valid DispatcherPriority.

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