Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OdbcException Members

The exception that is generated when a warning or error is returned by an ODBC data source. This class cannot be inherited.

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

(see also Protected Properties )
  Name Description
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 Errors Gets a collection of one or more OdbcError objects that give detailed information about exceptions generated by the .NET Framework Data Provider for ODBC.
Public property HelpLink  Gets or sets a link to the help file associated with this exception.(Inherited from Exception.)
Public property InnerException  Gets the Exception instance that caused the current exception.(Inherited from Exception.)
Public property Message  Gets a message that describes the current exception.(Inherited from Exception.)
Public property Source Overridden. Gets the name of the ODBC driver that generated the error.
Public property 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 TargetSite  Gets the method that throws the current exception.(Inherited from Exception.)

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

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method 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 GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetObjectData Overridden. This member overrides GetObjectData.
Public method GetType  Gets the runtime type of the current instance. (Inherited from Exception.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Creates and returns a string representation of the current exception. (Inherited from Exception.)

  Name Description
Protected method 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 MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)

Community Additions

© 2015 Microsoft