ConnectionHelperGetConnectionByName Method |
Returns the connection.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax public 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:
GeneralConnectionSee Also