Thursday, March 29, 2012

Looking up thrown exceptions

Hi,

I just came fromwww.msdn.com to look up what exceptions are possibly thrown by the constructor of the OleDbConnection class. I noticed that there is no overview available of thrown exceptions. Is there an alternative library available on the net that does offer this information?

Regards,

Hi,

The two Overload constructor of OleDbConnection is used to Initialize a new instance of the class.OleDbConnection (String) will assign a connection string to its property in addition.

OleDbConnection ()Initializes a new instance of theOleDbConnection class.OleDbConnection (String)Initializes a new instance of theOleDbConnection class with the specified connection string.

Those kind of operation is not likely to throw exception itself except running out of system resource, etc. So I think it is better to check what kind of exceptions the base clase of OleDbConnection will throw.

0 comments:

Post a Comment