Requires.FailRange(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 Exception FailRange (string? parameterName, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member FailRange : string * string -> Exception
Public Shared Function FailRange (parameterName As String, Optional message As String = Nothing) As Exception
Parameters
- parameterName
- String
- message
- String
Returns
Nothing. This method always throws.
- Attributes