StringExtensions.IsEmpty(String) 方法

定義

檢查字串值為 Null 或空白。

public static bool IsEmpty (this string value);
static member IsEmpty : string -> bool
<Extension()>
Public Function IsEmpty (value As String) As Boolean

參數

value
String

要測試的字串值。

傳回

如果 value 為 null 或 為零長度字串,則為 true (「」) ,否則為 false。

適用於