Requires.Range(Boolean, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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