Throws an InvalidOperationException if this method is called
because the user is responsible for closing IDbConnections.
Namespace: NHibernate.ConnectionAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public override void CloseConnection( IDbConnection conn ) |
Visual Basic |
---|
Public Overrides Sub CloseConnection ( _ conn As IDbConnection _ ) |
Visual C++ |
---|
public: virtual void CloseConnection( IDbConnection^ conn ) override |
Parameters
- conn
- Type: System.Data..::..IDbConnection
The IDbConnection to clean up.
Implements
IConnectionProvider..::..CloseConnection(IDbConnection)Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | Thrown when this method is called. User is responsible for closing IDbConnections. |