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

value

argumentName
String

参数的字符串表示形式

适用于