Dispatcher::ValidatePriority Method (DispatcherPriority, String^)
.NET Framework (current version)
Determines whether the specified DispatcherPriority is a valid priority.
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
Available since 3.0
Show: