CMSConnectionScope Constructor (IDataConnection, Boolean)Kentico 8.0 API Reference
Constructor. Ensures that all database connections during the live of this object will use the given connection.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

conn
Type: CMS.DataEngine IDataConnection
Connection to use within all database operations. If null new connection is created
openConnection
Type: OnlineSystem Boolean
If true, opens the connection
See Also