.NET Framework 4.5
The SqlException type exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetBaseException||When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetObjectData||Sets the SerializationInfo with information about the exception. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)|
|GetType||Gets the runtime type of the current instance. (Inherited from Exception.)|
Returns a string that represents the current SqlException object, and includes the client connection ID (for more information, see ClientConnectionId). (Overrides ExternalException.ToString().)
In .NET Framework Client Profile, this member is overridden by ToString().