class ArgumentOutOfRangeException
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
public ArgumentOutOfRangeException( string paramName )
Initializes a new instance of the class with the name of the parameter that causes this exception.
paramNameThe name of the parameter that causes this exception.
public ArgumentOutOfRangeException( string message, Exception innerException )
Initializes a new instance of the class with a specified error message and the exception that is the cause of this exception.
messageThe error message that explains the reason for this exception.innerExceptionThe exception that is the cause of the current exception, or a null reference ( in Visual Basic) if no inner exception is specified.
public ArgumentOutOfRangeException( string paramName, object actualValue, string message )
Initializes a new instance of the class with the parameter name, the value of the argument, and a specified error message.
paramNameThe name of the parameter that caused the exception.actualValueThe value of the argument that causes this exception.messageThe message that describes the error.
public ArgumentOutOfRangeException( string paramName, string message )
Initializes a new instance of the class with the name of the parameter that causes this exception and a specified error message.
paramNameThe name of the parameter that caused the exception.messageThe message that describes the error.
public object ActualValue { get; }
Gets the argument value that causes this exception.
- Returns An that contains the value of the parameter that caused the current .
public void GetObjectData( SerializationInfo info, StreamingContext context )
Sets the object with the invalid argument value and additional exception information.
infoThe object that holds the serialized object data.contextAn object that describes the source or destination of the serialized data.
public string Message { get; }
Gets the error message and the string representation of the invalid argument value, or only the error message if the argument value is null.
- Returns The text message for this exception. The value of this property takes one of two forms, as follows. Condition Value The is . The string passed to the constructor. The is not . The string appended with the string representation of the invalid argument value.
public Exception GetBaseException( )
😔 No documentation found.
public static void ThrowIfZero( T value, string paramName = null )
😔 No documentation found.
public ArgumentOutOfRangeException( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string StackTrace { get; }
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public int HResult { get; set; }
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public string Source { get; set; }
😔 No documentation found.
public string HelpLink { get; set; }
😔 No documentation found.
public Exception InnerException { get; }
😔 No documentation found.
public static void ThrowIfNegative( T value, string paramName = null )
😔 No documentation found.
public IDictionary Data { get; }
😔 No documentation found.
public string ParamName { get; }
😔 No documentation found.
public static void ThrowIfLessThanOrEqual( T value, T other, string paramName = null )
😔 No documentation found.
public static void ThrowIfLessThan( T value, T other, string paramName = null )
😔 No documentation found.
public static void ThrowIfGreaterThanOrEqual( T value, T other, string paramName = null )
😔 No documentation found.
public static void ThrowIfGreaterThan( T value, T other, string paramName = null )
😔 No documentation found.
public static void ThrowIfNotEqual( T value, T other, string paramName = null )
😔 No documentation found.
public static void ThrowIfNegativeOrZero( T value, string paramName = null )
😔 No documentation found.
public static void ThrowIfEqual( T value, T other, string paramName = null )
😔 No documentation found.