Dispatcher.ValidatePriority Method (DispatcherPriority, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether the specified DispatcherPriority is a valid priority.

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

Public Shared Sub ValidatePriority (
	priority As DispatcherPriority,
	parameterName As String
)

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: