This documentation is archived and is not being maintained.

DbConnection Properties

The DbConnection type exposes the following members.

Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property ConnectionString Gets or sets the string used to open the connection.
Public property ConnectionTimeout Gets the time to wait while establishing a connection before terminating the attempt and generating an error.
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Public property Database Gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened.
Public property DataSource Gets the name of the database server to which to connect.
Protected property DbProviderFactory Gets the DbProviderFactory for this DbConnection.
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property ServerVersion Gets a string that represents the version of the server to which the object is connected.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property State Gets a string that describes the state of the connection.