編集

次の方法で共有


Guard.IsNullOrWhitespace(String, String) Method

Definition

Caution

Use IsNullOrWhiteSpace

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

[System.Obsolete("Use IsNullOrWhiteSpace")]
public static void IsNullOrWhitespace (string? text, string name);
[<System.Obsolete("Use IsNullOrWhiteSpace")>]
static member IsNullOrWhitespace : string * string -> unit
Public Shared Sub IsNullOrWhitespace (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