Partager via


Requires.Range(Boolean, String, String) Method

Definition

Throws an ArgumentOutOfRangeException if a condition does not evaluate to true.

[System.Diagnostics.DebuggerStepThrough]
public static void Range (bool condition, string? parameterName, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member Range : bool * string * string -> unit
Public Shared Sub Range (condition As Boolean, parameterName As String, Optional message As String = Nothing)

Parameters

condition
Boolean
parameterName
String
message
String
Attributes

Applies to