Dispatcher.ValidatePriority(DispatcherPriority, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the specified DispatcherPriority is a valid priority.
public:
static void ValidatePriority(System::Windows::Threading::DispatcherPriority priority, System::String ^ parameterName);
public static void ValidatePriority (System.Windows.Threading.DispatcherPriority priority, string parameterName);
static member ValidatePriority : System.Windows.Threading.DispatcherPriority * string -> unit
Public Shared Sub ValidatePriority (priority As DispatcherPriority, parameterName As String)
Parameters
- priority
- DispatcherPriority
The priority to check.
- parameterName
- String
A string that will be returned by the exception that occurs if the priority is invalid.
Exceptions
priority
is not a valid DispatcherPriority.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.