System.Data.OleDb.OleDbConnection Members

The members of System.Data.OleDb.OleDbConnection are listed below.

See Also: Inherited members from System.Data.Common.DbConnection

Public Constructors

Initializes a new instance of the System.Data.OleDb.OleDbConnection class.

Initializes a new instance of the System.Data.OleDb.OleDbConnection class with the specified connection string.

Public Properties

override
ConnectionStringstring.

Gets or sets the string used to open a database.

[read-only]
override
ConnectionTimeoutint.

Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.

[read-only]
override
Databasestring.

Gets the name of the current database or the database to be used after a connection is opened.

[read-only]
override
DataSourcestring.

Gets the server name or file name of the data source.

[read-only]
Providerstring.

Gets the name of the OLE DB provider specified in the "Provider= " clause of the connection string.

[read-only]
override
ServerVersionstring.

Gets a string that contains the version of the server to which the client is connected.

[read-only]
override
StateSystem.Data.ConnectionState.

Gets the current state of the connection.

Public Methods

BeginTransaction() : OleDbTransaction

Starts a database transaction with the current System.Data.IsolationLevel value.

BeginTransaction(System.Data.IsolationLevel) : OleDbTransaction

Starts a database transaction with the specified isolation level.

override
ChangeDatabase(string)

Changes the current database for an open System.Data.OleDb.OleDbConnection.

override
Close()

Closes the connection to the data source.

CreateCommand() : OleDbCommand

Creates and returns an System.Data.OleDb.OleDbCommand object associated with the System.Data.OleDb.OleDbConnection.

EnlistDistributedTransaction(System.EnterpriseServices.ITransaction)

Enlists in the specified transaction as a distributed transaction.

override
EnlistTransaction(System.Transactions.Transaction)

Enlists in the specified transaction as a distributed transaction.

GetOleDbSchemaTable(Guid, object[]) : System.Data.DataTable

Returns schema information from a data source as indicated by a GUID, and after it applies the specified restrictions.

override
GetSchema() : System.Data.DataTable

Returns schema information for the data source of this System.Data.OleDb.OleDbConnection.

override
GetSchema(string) : System.Data.DataTable

Returns schema information for the data source of this System.Data.OleDb.OleDbConnection using the specified string for the schema name.

override
GetSchema(string, string[]) : System.Data.DataTable

Returns schema information for the data source of this System.Data.OleDb.OleDbConnection using the specified string for the schema name and the specified string array for the restriction values.

override
Open()

Opens a database connection with the property settings specified by the OleDbConnection.ConnectionString.

static
ReleaseObjectPool()

Indicates that the System.Data.OleDb.OleDbConnection object pool can be released when the last underlying connection is released.

ResetState()

Updates the OleDbConnection.State property of the System.Data.OleDb.OleDbConnection object.

Protected Methods

override
BeginDbTransaction(System.Data.IsolationLevel) : System.Data.Common.DbTransaction
Documentation for this section has not yet been entered.
override
CreateDbCommand() : System.Data.Common.DbCommand
Documentation for this section has not yet been entered.
override
Dispose(bool)
Documentation for this section has not yet been entered.

Public Events

InfoMessage

Occurs when the provider sends a warning or an informational message.

StateChangeDocumentation for this section has not yet been entered.

Explicitly Implemented Interface Members

System.Data.IDbConnection.BeginTransactionDocumentation for this section has not yet been entered.
System.Data.IDbConnection.BeginTransactionDocumentation for this section has not yet been entered.
ICloneable.Clone

For a description of this member, see ICloneable.Clone.

System.Data.IDbConnection.CreateCommandDocumentation for this section has not yet been entered.