Share via


CodeContract.RequiresArgumentNotNullAndNotWhiteSpace(String, String) Method

Definition

Requires that argument not null and not whitespace

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)

Parameters

value
String

value

argumentName
String

string representation of the argument

Applies to