Version

ConnectionException Class Members

The following tables list the members exposed by ConnectionException.

Public Properties
 NameDescription
Public PropertyConnectionStringReturns the connection string which caused the exception to be thrown.  
Public PropertyDataGets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from System.Exception)
Public PropertyHelpLinkGets or sets a link to the help file associated with this exception. (Inherited from System.Exception)
Public PropertyHResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from System.Exception)
Public PropertyInnerExceptionGets the System.Exception instance that caused the current exception. (Inherited from System.Exception)
Public PropertyMessageGets a message that describes the current exception. (Inherited from System.Exception)
Public PropertySourceGets or sets the name of the application or the object that causes the error. (Inherited from System.Exception)
Public PropertyStackTraceGets a string representation of the immediate frames on the call stack. (Inherited from System.Exception)
Public PropertyTargetSiteGets the method that throws the current exception. (Inherited from System.Exception)
Public Methods
 NameDescription
Public MethodGetBaseExceptionWhen overridden in a derived class, returns the System.Exception that is the root cause of one or more subsequent exceptions. (Inherited from System.Exception)
Public MethodGetObjectDataWhen overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception. (Inherited from System.Exception)
Public MethodGetTypeGets the runtime type of the current instance. (Inherited from System.Exception)
Public MethodToStringCreates and returns a string representation of the current exception. (Inherited from System.Exception)
Protected Events
 NameDescription
Protected EventSerializeObjectStateOccurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from System.Exception)
See Also