Dispatcher.ValidatePriority(DispatcherPriority, String) メソッド

定義

指定した DispatcherPriority が有効な優先順位かどうかを判断します。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)

パラメーター

priority
DispatcherPriority

確認する対象の優先順位。The priority to check.

parameterName
String

優先順位が無効な場合に発生する例外によって返される文字列。A string that will be returned by the exception that occurs if the priority is invalid.

例外

priority は有効な DispatcherPriority ではありません。priority is not a valid DispatcherPriority.

適用対象