ArgumentOutOfRangeException.ThrowIfLessThan<T>(T, T, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Lève un ArgumentOutOfRangeException si value est inférieur à other.
public static void ThrowIfLessThan<T>(T value, T other, string? paramName = default) where T : IComparable<T>;
static member ThrowIfLessThan : 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub ThrowIfLessThan(Of T As IComparable(Of T)) (value As T, other As T, Optional paramName As String = Nothing)
Paramètres de type
- T
Type des objets à valider.
Paramètres
- value
- T
Argument à valider comme supérieur ou égal à other.
- other
- T
Valeur à comparer avec value.
- paramName
- String
Nom du paramètre avec lequel value correspond.