ConnectionHelper GetConnectionByName Method Kentico 8.0 API Reference
Returns the connection.

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

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