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)

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