Redigera

Dela via


ConnectionStringsExpressionBuilder.GetConnectionStringProviderName Method

Definition

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

public:
 static System::String ^ GetConnectionStringProviderName(System::String ^ connectionStringName);
public static string GetConnectionStringProviderName (string connectionStringName);
static member GetConnectionStringProviderName : string -> string
Public Shared Function GetConnectionStringProviderName (connectionStringName As String) As String

Parameters

connectionStringName
String

The name of the connection string.

Returns

The provider as a String for this connection string name.

Exceptions

The connection string name could not be found in the Web.config file.

Remarks

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.

Applies to

See also