Name

ArgumentOutOfRangeException

Synopsis

This exception is a subclass of ArgumentException and indicates that a method received an out-of-range parameter value.

public class ArgumentOutOfRangeException : ArgumentException {
// Public Constructors
   public ArgumentOutOfRangeException( );
   public ArgumentOutOfRangeException(string paramName);
   public ArgumentOutOfRangeException(string paramName, object actualValue, string message);
   public ArgumentOutOfRangeException(string paramName, string message);
// Protected Constructors
   protected ArgumentOutOfRangeException(System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);
// Public Instance Properties
   public virtual object ActualValue{get; }
   public override string Message{get; } 
// overrides ArgumentException
                  // Public Instance Methods
   public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info,
        System.Runtime.Serialization.StreamingContext context);  
// overrides ArgumentException
}

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException ArgumentException ArgumentOutOfRangeException

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.