Click or drag to resize
CMSConnectionScope Constructor (String, Boolean)
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: 13.0.131
Syntax
C#
public CMSConnectionScope(
	string connectionString,
	bool defaultIfNotFound = false
)

Parameters

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