CodeContract.RequiresArgumentNotNullAndNotWhiteSpace(String, String) 方法

定義

要求該自變數不是 Null,而不是空格符

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

參數

value
String

argumentName
String

自變數的字串表示

適用於