Mono Class Library: System.Data.SqlClient Namespace

System.Data.SqlClient.SqlConnection Class

The SqlConnection class represents a SQL Server connection.

See Also: SqlConnection Members

System.Object
     System.MarshalByRefObject
          System.ComponentModel.Component
               System.Data.Common.DbConnection
                    System.Data.SqlClient.SqlConnection

[System.ComponentModel.DefaultEvent("InfoMessage")]
public sealed class SqlConnection : System.Data.Common.DbConnection, ICloneable

Remarks

When a previously opened SQLConnection goes out of scope, the database connection is not automatically closed. Connections that have been opened must be explicitly closed by calling either Close or Dispose.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0