CMSConnectionScope Constructor (String, Boolean, Boolean) |
Note: This API is now obsolete.
Constructor. Ensures that all database connections during the live of this object will use the given connection.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax [ObsoleteAttribute("Use constructor CMSConnectionScope(string, bool), followed by an Open() call if necessary.")]
public CMSConnectionScope(
string connectionString,
bool openConnection,
bool defaultIfNotFound
)
Parameters
- connectionString
- Type: SystemString
Connection string to use within all underlying database operations. If null new connection is created - openConnection
- Type: SystemBoolean
If true, opens the connection - defaultIfNotFound
- Type: SystemBoolean
If true, the default connection string is used if the given connection string is not found
See Also