Compartir a través de


Requires.FailRange(String, String) Method

Definition

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

Applies to