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(stringparamName
); public ArgumentOutOfRangeException(stringparamName
, objectactualValue
, stringmessage
); public ArgumentOutOfRangeException(stringparamName
, stringmessage
); // Protected Constructors protected ArgumentOutOfRangeException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); // 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.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); // 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.