Export (0) Print
Expand All

EntityConnection.Close Method

Closes the connection to the database.

Namespace:  System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

abstract Close : unit -> unit  
override Close : unit -> unit

Implements

IDbConnection.Close()

ExceptionCondition
InvalidOperationException

An error occurred when closing the connection.

If the underlying data provider is not known, the call to Close does nothing.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft