CodeContract.RequiresArgumentNotNull<T>(T, String) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Wymaga tego argumentu nie ma wartości null
public:
generic <typename T>
where T : class[System::Runtime::CompilerServices::Extension]
static void RequiresArgumentNotNull(T value, System::String ^ argumentName);
public static void RequiresArgumentNotNull<T>(this T value, string argumentName) where T : class;
static member RequiresArgumentNotNull : 'T * string -> unit (requires 'T : null)
<Extension()>
Public Sub RequiresArgumentNotNull(Of T As Class) (value As T, argumentName As String)
Parametry typu
- T
typ argumentu
Parametry
- value
- T
Wartość
- argumentName
- String
reprezentacja ciągu argumentu