共用方式為


StringExtensions.IsNullOrWhiteSpace(String) 方法

定義

檢查字串是否為 Null 或只包含空格符

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNullOrWhiteSpace(System::String ^ value);
public static bool IsNullOrWhiteSpace (this string value);
static member IsNullOrWhiteSpace : string -> bool
<Extension()>
Public Function IsNullOrWhiteSpace (value As String) As Boolean

參數

value
String

要驗證的字串

傳回

作業的結果

適用於