Guard.HasStatusEqualTo(Task, TaskStatus, 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.
Asserts that the input Task instance has a specific status.
public static void HasStatusEqualTo (System.Threading.Tasks.Task task, System.Threading.Tasks.TaskStatus status, string name);
static member HasStatusEqualTo : System.Threading.Tasks.Task * System.Threading.Tasks.TaskStatus * string -> unit
Public Shared Sub HasStatusEqualTo (task As Task, status As TaskStatus, name As String)
Parameters
- status
- TaskStatus
The task status that is accepted.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if task
doesn't match status
.