Export (0) Print
Expand All

SqlException Members

The exception that is thrown when SQL Server returns a warning or error. This class cannot be inherited.

The following tables list the members exposed by the SqlException type.

(see also Protected Properties )
  Name Description
Public property Supported by the .NET Compact Framework Class Gets the severity level of the error returned from the .NET Framework Data Provider for SQL Server.
Public property Data  Gets a collection of key/value pairs that provide additional user-defined information about the exception.(inherited from Exception)
Public property ErrorCode  Gets the HRESULT of the error.(inherited from ExternalException)
Public property Supported by the .NET Compact Framework Errors 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.
Public property HelpLink  Gets or sets a link to the help file associated with this exception.(inherited from Exception)
Public property Supported by the .NET Compact Framework InnerException  Gets the Exception instance that caused the current exception.(inherited from Exception)
Public property Supported by the .NET Compact Framework LineNumber Gets the line number within the Transact-SQL command batch or stored procedure that generated the error.
Public property Supported by the .NET Compact Framework Message  Gets a message that describes the current exception.(inherited from Exception)
Public property Supported by the .NET Compact Framework Number Gets a number that identifies the type of error.
Public property Supported by the .NET Compact Framework Procedure Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.
Public property Supported by the .NET Compact Framework Server Gets the name of the computer that is running an instance of SQL Server that generated the error.
Public property Supported by the .NET Compact Framework Source Overridden. Gets the name of the provider that generated the error.
Public property Supported by the .NET Compact Framework StackTrace  Gets a string representation of the frames on the call stack at the time the current exception was thrown.(inherited from Exception)
Public property Supported by the .NET Compact Framework State 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.
Public property TargetSite  Gets the method that throws the current exception.(inherited from Exception)
Top

  Name Description
Protected property Supported by the .NET Compact Framework HResult  Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(inherited from Exception)
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework GetBaseException  When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (inherited from Exception)
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetObjectData Overridden. Sets the SerializationInfo with information about the exception.
Public method Supported by the .NET Compact Framework GetType  Gets the runtime type of the current instance. (inherited from Exception)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework ToString  Creates and returns a string representation of the current exception. (inherited from Exception)
Top

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft