Guard.IsNullOrEmpty(String, 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 String instance must be null or empty.
public static void IsNullOrEmpty(string? text, string name = "");
public static void IsNullOrEmpty(string? text, string name);
static member IsNullOrEmpty : string * string -> unit
Public Shared Sub IsNullOrEmpty (text As String, Optional name As String = "")
Public Shared Sub IsNullOrEmpty (text As String, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if text is neither null nor empty.