DbConnection.Open Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

abstract Open : unit -> unit

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