Partager via


Database.OpenConnection 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.

Opens a connection.

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

Syntax

'Declaration
<ObsoleteAttribute("Use GetOpenConnection instead.")> _
ProtectedFunctionOpenConnectionAs DbConnection
[ObsoleteAttribute("Use GetOpenConnection instead.")]
protected DbConnection OpenConnection()
[ObsoleteAttribute(L"Use GetOpenConnection instead.")]
protected:
DbConnection^ OpenConnection()
protectedfunctionOpenConnection() : DbConnection

Return Value

The opened connection.

See Also

Database Class

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.