10 [__DynamicallyInvokable]
13 private static volatile string _rangeMessage;
15 private object m_actualValue;
17 private static string RangeMessage
21 if (_rangeMessage ==
null)
23 _rangeMessage =
Environment.GetResourceString(
"Arg_ArgumentOutOfRangeException");
31 [__DynamicallyInvokable]
34 [__DynamicallyInvokable]
37 string message = base.Message;
38 if (m_actualValue !=
null)
40 string resourceString =
Environment.GetResourceString(
"ArgumentOutOfRange_ActualValue", m_actualValue.ToString());
43 return resourceString;
53 [__DynamicallyInvokable]
56 [__DynamicallyInvokable]
64 [__DynamicallyInvokable]
68 SetErrorCode(-2146233086);
73 [__DynamicallyInvokable]
75 : base(RangeMessage, paramName)
77 SetErrorCode(-2146233086);
83 [__DynamicallyInvokable]
85 : base(message, paramName)
87 SetErrorCode(-2146233086);
93 [__DynamicallyInvokable]
95 : base(message, innerException)
97 SetErrorCode(-2146233086);
104 [__DynamicallyInvokable]
106 : base(message, paramName)
108 m_actualValue = actualValue;
109 SetErrorCode(-2146233086);
123 base.GetObjectData(info, context);
124 info.AddValue(
"ActualValue", m_actualValue, typeof(
object));
131 : base(info, context)
133 m_actualValue = info.GetValue(
"ActualValue", typeof(
object));
static string NewLine
Gets the newline string defined for this environment.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
ArgumentOutOfRangeException()
Initializes a new instance of the T:System.ArgumentOutOfRangeException class.
ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.ArgumentOutOfRangeException class with serialized data.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
ArgumentOutOfRangeException(string paramName, string message)
Initializes a new instance of the T:System.ArgumentOutOfRangeException class with the name of the par...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
override string Message
Gets the error message and the string representation of the invalid argument value,...
virtual object ActualValue
Gets the argument value that causes this exception.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown when one of the arguments provided to a method is not valid.
ArgumentOutOfRangeException(string paramName)
Initializes a new instance of the T:System.ArgumentOutOfRangeException class with the name of the par...
ArgumentOutOfRangeException(string paramName, object actualValue, string message)
Initializes a new instance of the T:System.ArgumentOutOfRangeException class with the parameter name,...
Allows an object to control its own serialization and deserialization.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
ArgumentOutOfRangeException(string message, Exception innerException)
Initializes a new instance of the T:System.ArgumentOutOfRangeException class with a specified error m...
Specifies that the class can be serialized.
override void GetObjectData(SerializationInfo info, StreamingContext context)
Sets the T:System.Runtime.Serialization.SerializationInfo object with the invalid argument value and ...