DbConnection.Open Method ()

 
System_CAPS_noteNote

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)

public abstract void Open()

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: