ConnectionHelperGetConnectionByName Method |
Returns the connection.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntaxpublic static GeneralConnection GetConnectionByName(
string connectionStringName,
bool defaultIfNotFound = false
)
Parameters
- connectionStringName
- Type: SystemString
Connection string name - defaultIfNotFound (Optional)
- Type: SystemBoolean
If true, the default connection string is returned if the given connection string is not found
Return Value
Type:
GeneralConnection
See Also