SqlException Properties

 

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubpropertyClass

Gets the severity level of the error returned from the .NET Framework Data Provider for SQL Server.

System_CAPS_pubpropertyClientConnectionId

Represents the client connection ID. For more information, see Data Tracing in ADO.NET.

System_CAPS_pubpropertyData

Gets a collection of key/value pairs that provide additional user-defined information about the exception.(Inherited from Exception.)

System_CAPS_pubpropertyErrorCode

Gets the HRESULT of the error.(Inherited from ExternalException.)

System_CAPS_pubpropertyErrors

Gets a collection of one or more SqlError objects that give detailed information about exceptions generated by the .NET Framework Data Provider for SQL Server.

System_CAPS_pubpropertyHelpLink

Gets or sets a link to the help file associated with this exception.(Inherited from Exception.)

System_CAPS_pubpropertyHResult

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

Gets the Exception instance that caused the current exception.(Inherited from Exception.)

System_CAPS_pubpropertyLineNumber

Gets the line number within the Transact-SQL command batch or stored procedure that generated the error.

System_CAPS_pubpropertyMessage

Gets a message that describes the current exception.(Inherited from Exception.)

System_CAPS_pubpropertyNumber

Gets a number that identifies the type of error.

System_CAPS_pubpropertyProcedure

Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.

System_CAPS_pubpropertyServer

Gets the name of the computer that is running an instance of SQL Server that generated the error.

System_CAPS_pubpropertySource

Gets the name of the provider that generated the error.(Overrides Exception.Source.)

System_CAPS_pubpropertyStackTrace

Gets a string representation of the immediate frames on the call stack.(Inherited from Exception.)

System_CAPS_pubpropertyState

Gets a numeric error code from SQL Server that represents an error, warning or "no data found" message. For more information about how to decode these values, see SQL Server Books Online.

System_CAPS_pubpropertyTargetSite

Gets the method that throws the current exception.(Inherited from Exception.)

Return to top
Show: