ConnectionHelper GetConnectionByName Method Kentico 8.1 API Reference
Returns the connection.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

connectionStringName
Type: OnlineSystem String
Connection string name
defaultIfNotFound (Optional)
Type: OnlineSystem Boolean
If true, the default connection string is returned if the given connection string is not found

Return Value

Type: GeneralConnection
See Also