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 method ArgumentOutOfRangeException();  
   public method ArgumentOutOfRangeException(
        string paramName);  
   public method ArgumentOutOfRangeException(string paramName, 
        object actualValue, string message);  
   public method ArgumentOutOfRangeException(string paramName, 
        string message);  
// Protected Constructors
   protected method ArgumentOutOfRangeException(
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
// Public Instance Properties
   public virtual field object ActualValue{get; } 
   public override field string Message{get; }                   // overrides ArgumentException
                  // Public Instance Methods
   public override method void GetObjectData(                   // overrides ArgumentException
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
}

Hierarchy

ObjectException(System.Runtime.Serialization.ISerializable)SystemExceptionArgumentExceptionArgumentOutOfRangeException

Get C# in a Nutshell 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.