OleDbConnection Methods

 

Namespace:   System.Data.OleDb
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodBeginTransaction()

Starts a database transaction with the current IsolationLevel value.

System_CAPS_pubmethodBeginTransaction(IsolationLevel)

Starts a database transaction with the specified isolation level.

System_CAPS_pubmethodChangeDatabase(String)

Changes the current database for an open OleDbConnection.(Overrides DbConnection.ChangeDatabase(String).)

System_CAPS_pubmethodClose()

Closes the connection to the data source.(Overrides DbConnection.Close().)

System_CAPS_pubmethodCreateCommand()

Creates and returns an OleDbCommand object associated with the OleDbConnection.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from Component.)

System_CAPS_pubmethodEnlistDistributedTransaction(ITransaction)

Enlists in the specified transaction as a distributed transaction.

System_CAPS_pubmethodEnlistTransaction(Transaction)

Enlists in the specified transaction as a distributed transaction.(Overrides DbConnection.EnlistTransaction(Transaction).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetOleDbSchemaTable(Guid, Object[])

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

System_CAPS_pubmethodGetSchema()

Returns schema information for the data source of this OleDbConnection.(Overrides DbConnection.GetSchema().)

System_CAPS_pubmethodGetSchema(String)

Returns schema information for the data source of this OleDbConnection using the specified string for the schema name.(Overrides DbConnection.GetSchema(String).)

System_CAPS_pubmethodGetSchema(String, String[])

Returns schema information for the data source of this OleDbConnection using the specified string for the schema name and the specified string array for the restriction values.(Overrides DbConnection.GetSchema(String, String[]).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodOpen()

Opens a database connection with the property settings specified by the ConnectionString.(Overrides DbConnection.Open().)

System_CAPS_pubmethodOpenAsync()

An asynchronous version of Open, which opens a database connection with the settings specified by the ConnectionString. This method invokes the virtual method OpenAsync with CancellationToken.None.(Inherited from DbConnection.)

System_CAPS_pubmethodOpenAsync(CancellationToken)

This is the asynchronous version of Open. Providers should override with an appropriate implementation. The cancellation token can optionally be honored.

The default implementation invokes the synchronous Open call and returns a completed task. The default implementation will return a cancelled task if passed an already cancelled cancellationToken. Exceptions thrown by Open will be communicated via the returned Task Exception property.

Do not invoke other methods and properties of the DbConnection object until the returned Task is complete.(Inherited from DbConnection.)

System_CAPS_pubmethodSystem_CAPS_staticReleaseObjectPool()

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

System_CAPS_pubmethodResetState()

Updates the State property of the OleDbConnection object.

System_CAPS_pubmethodToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.(Inherited from Component.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbConnection.BeginTransaction()

Begins a database transaction.(Inherited from DbConnection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified IsolationLevel value.(Inherited from DbConnection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbConnection.CreateCommand()

Creates and returns a DbCommand object that is associated with the current connection.(Inherited from DbConnection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.Clone()

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

Return to top
Show: