Guard.IsFalse Method

Definition

Overloads

IsFalse(Boolean, String)

Asserts that the input value must be false.

IsFalse(Boolean, String, String)

Asserts that the input value must be false.

IsFalse(Boolean, String)

Asserts that the input value must be false.

public static void IsFalse (bool value, string name);
static member IsFalse : bool * string -> unit
Public Shared Sub IsFalse (value As Boolean, name As String)

Parameters

value
Boolean

The input Boolean to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is true.

Applies to

IsFalse(Boolean, String, String)

Asserts that the input value must be false.

public static void IsFalse (bool value, string name, string message);
static member IsFalse : bool * string * string -> unit
Public Shared Sub IsFalse (value As Boolean, name As String, message As String)

Parameters

value
Boolean

The input Boolean to test.

name
String

The name of the input parameter being tested.

message
String

A message to display if value is true.

Exceptions

Thrown if value is true.

Applies to