Click or drag to resize
ConnectionHelperGetConnectionString Method (String, Boolean)
Gets the connection string of provided connectionStringName.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetConnectionString(
	string connectionStringName,
	bool nullIfNotFound
)

Parameters

connectionStringName
Type: SystemString
Connection string name.
nullIfNotFound
Type: SystemBoolean
If true, the null is returned if the given connection string is not found.

Return Value

Type: String
Exceptions
ExceptionCondition
ArgumentExceptionThrown when nullIfNotFound is false and there is no connection string with provided connectionStringName.
See Also