ConnectionStringsExpressionBuilder::GetConnectionStringProviderName Method (String^)
.NET Framework (current version)
Returns the connection string provider from the <connectionStrings> section of the Web.config file.
Assembly: System.Web (in System.Web.dll)
Parameters
- connectionStringName
-
Type:
System::String^
The name of the connection string.
| Exception | Condition |
|---|---|
| InvalidOperationException | The connection string name could not be found in the Web.config file. |
The ConfigurationManager::ConnectionStrings property returns a collection of connection string values. The GetConnectionStringProviderName method returns the provider for the value from this collection that is associated with the connection string name.
.NET Framework
Available since 2.0
Available since 2.0
Show: