Dispatcher.ValidatePriority(DispatcherPriority, String) Method

Definition

Determina si el objeto DispatcherPriority especificado tiene una prioridad válida.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

Prioridad que se va a comprobar.The priority to check.

parameterName
String

Cadena que devolverá la excepción que se produce si la prioridad no es válida.A string that will be returned by the exception that occurs if the priority is invalid.

Exceptions

priority no es un DispatcherPriority válido.priority is not a valid DispatcherPriority.

Applies to