ConnectionHelperGetConnectionString Method (String, Boolean) |
Gets the connection string of provided connectionStringName.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax 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:
StringExceptions Exception | Condition |
---|
ArgumentException | Thrown when nullIfNotFound is false and there is no connection string with provided connectionStringName. |
See Also