Partager via


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

Creates a connection for this database.

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

Syntax

'Declaration
PublicOverridableFunctionCreateConnectionAs DbConnection
publicvirtual DbConnection CreateConnection()
public:
virtual DbConnection^ CreateConnection()
publicfunctionCreateConnection() : DbConnection

Return Value

The DbConnection for this database.

See Also

Database Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace

System.Data.Common.DbConnection

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.