Share via


CodeContract.RequiresArgumentNotEmptyOrWhitespace(String, String) Method

Definition

Requires that string is not empty or contains just whitespaces

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)

Parameters

value
String

value

argumentName
String

string representation of the argument

Applies to