Share via


SqlCeDatabase.CloseSharedConnection 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.

The latest Enterprise Library information can be found at the Enterprise Library site.

This will close the "keep alive" connection that is kept open once you first access the database through this class. Calling this method will close the "keep alive" connection for all instances. The next database access will open a new "keep alive" connection.

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

Syntax

'Declaration
Public Sub CloseSharedConnection
public void CloseSharedConnection()
public:
void CloseSharedConnection()
public function CloseSharedConnection()

See Also

SqlCeDatabase Class

Microsoft.Practices.EnterpriseLibrary.Data.SqlCe Namespace