Sdílet prostřednictvím


CodeContract.RequiresArgumentNotNullAndNotEmpty(String, String) Metoda

Definice

Vyžaduje, aby řetězec neměl hodnotu null a nebyl prázdný.

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)

Parametry

value
String

hodnota

argumentName
String

Řetězcové vyjádření argumentu

Platí pro