O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required