mscorlib(4.0.0.0) API with additions
|
The exception that is thrown when one of the arguments provided to a method is not valid. More...
Public Member Functions | |
ArgumentException () | |
Initializes a new instance of the T:System.ArgumentException class. More... | |
ArgumentException (string message) | |
Initializes a new instance of the T:System.ArgumentException class with a specified error message. More... | |
ArgumentException (string message, Exception innerException) | |
Initializes a new instance of the T:System.ArgumentException class with a specified error message and a reference to the inner exception that is the cause of this exception. More... | |
ArgumentException (string message, string paramName, Exception innerException) | |
Initializes a new instance of the T:System.ArgumentException class with a specified error message, the parameter name, and a reference to the inner exception that is the cause of this exception. More... | |
ArgumentException (string message, string paramName) | |
Initializes a new instance of the T:System.ArgumentException class with a specified error message and the name of the parameter that causes this exception. More... | |
override void | GetObjectData (SerializationInfo info, StreamingContext context) |
Sets the T:System.Runtime.Serialization.SerializationInfo object with the parameter name and additional exception information. More... | |
![]() | |
SystemException () | |
Initializes a new instance of the T:System.SystemException class. More... | |
SystemException (string message) | |
Initializes a new instance of the T:System.SystemException class with a specified error message. More... | |
SystemException (string message, Exception innerException) | |
Initializes a new instance of the T:System.SystemException class with a specified error message and a reference to the inner exception that is the cause of this exception. More... | |
![]() | |
Exception () | |
Initializes a new instance of the T:System.Exception class. More... | |
Exception (string message) | |
Initializes a new instance of the T:System.Exception class with a specified error message. More... | |
Exception (string message, Exception innerException) | |
Initializes a new instance of the T:System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More... | |
virtual Exception | GetBaseException () |
When overridden in a derived class, returns the T:System.Exception that is the root cause of one or more subsequent exceptions. More... | |
override string | ToString () |
Creates and returns a string representation of the current exception. More... | |
new Type | GetType () |
Gets the runtime type of the current instance. More... | |
![]() | |
new bool | Equals (object obj) |
Provides COM objects with version-independent access to the M:System.Object.Equals(System.Object) method. More... | |
new int | GetHashCode () |
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method. More... | |
Protected Member Functions | |
ArgumentException (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the T:System.ArgumentException class with serialized data. More... | |
![]() | |
SystemException (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the T:System.SystemException class with serialized data. More... | |
![]() | |
Exception (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the T:System.Exception class with serialized data. More... | |
Properties | |
override string | Message [get] |
Gets the error message and the parameter name, or only the error message if no parameter name is set. More... | |
virtual string | ParamName [get] |
Gets the name of the parameter that causes this exception. More... | |
![]() | |
virtual string | Message [get] |
Gets a message that describes the current exception. More... | |
virtual IDictionary | Data [get] |
Gets a collection of key/value pairs that provide additional user-defined information about the exception. More... | |
Exception | InnerException [get] |
Gets the T:System.Exception instance that caused the current exception. More... | |
MethodBase | TargetSite [get] |
Gets the method that throws the current exception. More... | |
virtual string | StackTrace [get] |
Gets a string representation of the immediate frames on the call stack. More... | |
virtual string | HelpLink [get, set] |
Gets or sets a link to the help file associated with this exception. More... | |
virtual string | Source [get, set] |
Gets or sets the name of the application or the object that causes the error. More... | |
int | HResult [get, protected set] |
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. More... | |
EventHandler< SafeSerializationEventArgs > | SerializeObjectState |
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. More... | |
![]() | |
string | Message [get] |
Provides COM objects with version-independent access to the P:System.Exception.Message property. More... | |
string | StackTrace [get] |
Provides COM objects with version-independent access to the P:System.Exception.StackTrace property. More... | |
string | HelpLink [get, set] |
Provides COM objects with version-independent access to the P:System.Exception.HelpLink property. More... | |
string | Source [get, set] |
Provides COM objects with version-independent access to the P:System.Exception.Source property. More... | |
Exception | InnerException [get] |
Provides COM objects with version-independent access to the P:System.Exception.InnerException property. More... | |
MethodBase | TargetSite [get] |
Provides COM objects with version-independent access to the P:System.Exception.TargetSite property. More... | |
The exception that is thrown when one of the arguments provided to a method is not valid.
Definition at line 11 of file ArgumentException.cs.
System.ArgumentException.ArgumentException | ( | ) |
Initializes a new instance of the T:System.ArgumentException class.
Definition at line 47 of file ArgumentException.cs.
System.ArgumentException.ArgumentException | ( | string | message | ) |
Initializes a new instance of the T:System.ArgumentException class with a specified error message.
message | The error message that explains the reason for the exception. |
Definition at line 56 of file ArgumentException.cs.
System.ArgumentException.ArgumentException | ( | string | message, |
Exception | innerException | ||
) |
Initializes a new instance of the T:System.ArgumentException class with a specified error message and a reference to the inner exception that is the cause of this exception.
message | The error message that explains the reason for the exception. |
innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
Definition at line 66 of file ArgumentException.cs.
System.ArgumentException.ArgumentException | ( | string | message, |
string | paramName, | ||
Exception | innerException | ||
) |
Initializes a new instance of the T:System.ArgumentException class with a specified error message, the parameter name, and a reference to the inner exception that is the cause of this exception.
message | The error message that explains the reason for the exception. |
paramName | The name of the parameter that caused the current exception. |
innerException | The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. |
Definition at line 77 of file ArgumentException.cs.
System.ArgumentException.ArgumentException | ( | string | message, |
string | paramName | ||
) |
Initializes a new instance of the T:System.ArgumentException class with a specified error message and the name of the parameter that causes this exception.
message | The error message that explains the reason for the exception. |
paramName | The name of the parameter that caused the current exception. |
Definition at line 88 of file ArgumentException.cs.
|
protected |
Initializes a new instance of the T:System.ArgumentException class with serialized data.
info | The object that holds the serialized object data. |
context | The contextual information about the source or destination. |
Definition at line 98 of file ArgumentException.cs.
override void System.ArgumentException.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Sets the T:System.Runtime.Serialization.SerializationInfo object with the parameter name and additional exception information.
info | The object that holds the serialized object data. |
context | The contextual information about the source or destination. |
T:System.ArgumentNullException | The info object is a null reference (Nothing in Visual Basic). |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 109 of file ArgumentException.cs.
|
get |
Gets the error message and the parameter name, or only the error message if no parameter name is set.
Nothing
in Visual Basic) or of zero length. The message string passed to the constructor. The paramName is not null reference (Nothing
in Visual Basic) and it has a length greater than zero. The message string appended with the name of the invalid parameter. Definition at line 19 of file ArgumentException.cs.
|
get |
Gets the name of the parameter that causes this exception.
Definition at line 37 of file ArgumentException.cs.