System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionStringProviderName Method

Returns the connection string provider from the <connectionStrings> section of the Web.config file.

Syntax

public static string GetConnectionStringProviderName (string connectionStringName)

Parameters

connectionStringName
The name of the connection string.

Returns

The provider as a string for this connection string name.

Remarks

The System.Configuration.ConfigurationManager.ConnectionStrings property returns a collection of connection string values. The ConnectionStringsExpressionBuilder.GetConnectionStringProviderName(string) method returns the provider for the value from this collection that is associated with the connection string name.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0