This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
SQLException Members
Public:
Properties
Class |
Gets the severity level of the error returned from the SQL Server adapter. |
Errors |
Gets all errors generated by the SQL Server adapter. |
HelpLink (inherited from Exception) |
Retrieves a link to the help file associated with this exception. |
InnerException (inherited from Exception) |
Retrieves a reference to an inner (that may be nested) exception. |
LineNumber |
Gets the line number that the SQL Server error occurred on. |
Message |
Gets the error message that was generated from the SQL Server adapter. |
Number |
Gets the error code returned from the SQL Server adapter. |
Procedure |
Gets the name of the procedure that the SQL Server error occurred in. |
Server |
Gets the name of the database server the error occurred on. |
Source |
Gets the line of source that generated the error. |
StackTrace (inherited from Exception) |
Retrieves the stack trace, which is valuable for determining where the error occurred. |
State |
Gets the error state number returned from the SQL Server adapter. |
TargetSite (inherited from Exception) |
[To be supplied.] |
Methods
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetBaseException (inherited from Exception) |
Returns the original exception that caused that exception and other exceptions linked to it. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetObjectData (inherited from Exception) |
Accesses the method that contains the context of the data from the source or destination. |
GetType (inherited from Object) |
Gets the Type of the Object. |
SetHelpLink (inherited from Exception) |
Sets the HelpLink property of this exception. |
SetObjectData (inherited from Exception) |
Sets the object that contains the context of the data from the source or destination. |
ToString (inherited from Exception) |
Returns the fully qualified name of this exception and the message held by the Message property. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
Fields
HResult (inherited from Exception) |
Protected. Returns a HResult. |
See Also
SQLException Class | System.Data.SQL Namespace