Guard.IsWhitespace(String, String) Method

Definition

Caution

Use IsWhiteSpace

Asserts that the input String instance must be whitespace.

public static void IsWhitespace (string text, string name);
[System.Obsolete("Use IsWhiteSpace")]
public static void IsWhitespace (string text, string name);
static member IsWhitespace : string * string -> unit
[<System.Obsolete("Use IsWhiteSpace")>]
static member IsWhitespace : string * string -> unit
Public Shared Sub IsWhitespace (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 neither null nor whitespace.

Applies to