Guard.IsFalse 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.
Overloads
IsFalse(Boolean, String) |
Asserts that the input value must be |
IsFalse(Boolean, String, String) |
Asserts that the input value must be |
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
- 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
- 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
.