DbConnection Properties
.NET Framework 3.5
The DbConnection type exposes the following members.
| Name | Description | |
|---|---|---|
|
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
|
ConnectionString | Gets or sets the string used to open the connection. |
|
ConnectionTimeout | Gets the time to wait while establishing a connection before terminating the attempt and generating an error. |
|
Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
|
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. |
|
DataSource | Gets the name of the database server to which to connect. |
|
DbProviderFactory | Gets the DbProviderFactory for this DbConnection. |
|
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
|
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
|
ServerVersion | Gets a string that represents the version of the server to which the object is connected. |
|
Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
|
State | Gets a string that describes the state of the connection. |