Skip to main content
Namespace: Phoenix.ComponentAPI
Assembly: Phoenix.ComponentAPI.dll

RequireValidStatus(RunStatus, string)

Given a run status, check if it is a valid status for a run result. If it is valid, return the provided status. Otherwise, throw an System.ArgumentOutOfRangeException.

Parameters

candidate RunStatus The candidate status. paramName string The name of the variable containing the status.

Returns

RunStatus The value of candidate if the status is valid.