CodeContract.RequiresArgumentNotEmptyOrWhitespace(String, String) 方法

定義

要求字串不是空的,或只包含空格符

public:
[System::Runtime::CompilerServices::Extension]
 static void RequiresArgumentNotEmptyOrWhitespace(System::String ^ value, System::String ^ argumentName);
public static void RequiresArgumentNotEmptyOrWhitespace (this string value, string argumentName);
static member RequiresArgumentNotEmptyOrWhitespace : string * string -> unit
<Extension()>
Public Sub RequiresArgumentNotEmptyOrWhitespace (value As String, argumentName As String)

參數

value
String

argumentName
String

自變數的字串表示

適用於