Guard.IsWhitespace(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.
Caution
Use IsWhiteSpace
Asserts that the input String instance must be whitespace.
[System.Obsolete("Use IsWhiteSpace")]
public static void IsWhitespace(string text, string name);
[<System.Obsolete("Use IsWhiteSpace")>]
static member IsWhitespace : string * string -> unit
Public Shared Sub IsWhitespace (text As String, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
- Attributes
Exceptions
Thrown if text is neither null nor whitespace.