Delen via


Database.GetOpenConnection Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Get's a "wrapped" connection that will be not be disposed if a transaction is active (created by creating a TransactionScope instance). The connection will be disposed when no transaction is active.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
ProtectedFunctionGetOpenConnectionAs Database..::.ConnectionWrapper
protected Database..::.ConnectionWrapper GetOpenConnection()
protected:
Database..::.ConnectionWrapper^ GetOpenConnection()
protectedfunctionGetOpenConnection() : Database..::.ConnectionWrapper

Return Value

See Also

Database Class

GetOpenConnection Overload

Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.