OleDbException serializable

OleDbException serializable

System.Data.OleDb (system.data.dll) sealed class

This exception represents a data source error. For example, if you attempt to execute a SQL statement that is syntactically incorrect or open a connection to a database server that can't be found, this exception is thrown. Every OleDbException contains at least one OleDbError object with data about the problem in the OleDbErrorCollection object. Errors that happen while disconnected from the data source (such as violating a System.Data.DataSet constraint or attempting to access a deleted row) result in a more specific exception from the System.Data namespace.

 public sealed class  OleDbException  : System.Runtime.InteropServices.ExternalException {  // Public Instance Properties  public override int  ErrorCode  {get; }  // overrides System.Runtime.InteropServices.ExternalException  public OleDbErrorCollection  Errors  {get; }     public override string  Message  {get; }  // overrides Exception  public override string  Source  {get; }  // overrides Exception   // Public Instance Methods  public override void  GetObjectData  (System.Runtime.Serialization.SerializationInfo   si   ,         System.Runtime.Serialization.StreamingContext   context   );  // overrides Exception  } 

Hierarchy

System.Object figs/u2192.gif System.Exception(System.Runtime.Serialization.ISerializable) figs/u2192.gif System.SystemException figs/u2192.gif System.Runtime.InteropServices.ExternalException figs/u2192.gif OleDbException



ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net