OdbcConnection Methods

OdbcConnection Methods

 

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

NameDescription
System_CAPS_pubmethodBeginTransaction()

Starts a transaction at the data source.

System_CAPS_pubmethodBeginTransaction(IsolationLevel)

Starts a transaction at the data source with the specified IsolationLevel value.

System_CAPS_pubmethodChangeDatabase(String)

Changes the current database associated with an open OdbcConnection.(Overrides DbConnection.ChangeDatabase(String).)

System_CAPS_pubmethodClose()

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

System_CAPS_pubmethodCreateCommand()

Creates and returns an OdbcCommand object associated with the OdbcConnection.

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_pubmethodGetSchema()

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

System_CAPS_pubmethodGetSchema(String)

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

System_CAPS_pubmethodGetSchema(String, String[])

Returns schema information for the data source of this OdbcConnection 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 connection to a data source 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 ODBC Driver Manager environment handle can be released when the last underlying connection is released.

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:
© 2016 Microsoft