Guard.IsNotNullOrWhitespace(String, String) Method

Definition

Caution

Use IsNotNullOrWhiteSpace

Asserts that the input String instance must not be null or whitespace.

public static void IsNotNullOrWhitespace (string? text, string name);
[System.Obsolete("Use IsNotNullOrWhiteSpace")]
public static void IsNotNullOrWhitespace (string? text, string name);
static member IsNotNullOrWhitespace : string * string -> unit
[<System.Obsolete("Use IsNotNullOrWhiteSpace")>]
static member IsNotNullOrWhitespace : string * string -> unit
Public Shared Sub IsNotNullOrWhitespace (text As String, name As String)

Parameters

text
String

The input String instance to test.

name
String

The name of the input parameter being tested.

Attributes

Exceptions

Thrown if text is null or whitespace.

Applies to