Dispatcher.ValidatePriority(DispatcherPriority, String) 方法

定义

确定指定的 DispatcherPriority 是否为有效的优先级。

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)

参数

priority
DispatcherPriority

要检查的优先级。

parameterName
String

将由优先级无效时发生的异常返回的字符串。

例外

priority 不是有效的 DispatcherPriority

适用于