Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbConnection::Open Method ()

 

Opens a database connection with the settings specified by the ConnectionString.

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

public:
virtual void Open() abstract

This method must be overridden with user-defined behavior. SqlConnection::Open will throw an exception if called again without first being closed.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft