CMSConnectionScope Constructor (String, Boolean, Boolean)Kentico 8.1 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.1.5347.20411)

Parameters

connectionString
Type: OnlineSystem String
Connection string to use within all underlying database operations. If null new connection is created
openConnection
Type: OnlineSystem Boolean
If true, opens the connection
defaultIfNotFound (Optional)
Type: OnlineSystem Boolean
If true, the default connection string is used if the given connection string is not found
See Also