Click or drag to resize
ConnectionHelperGetConnectionByName Method
Returns the connection.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
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: GeneralConnection
See Also