Share via


CodeContract.RequiresArgumentNotNullAndNotEmpty(String, String) Method

Definition

Requires that string is not null and not empty

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

Parameters

value
String

value

argumentName
String

string representation of the argument

Applies to