ConnectionStringsExpressionBuilder.GetConnectionStringProviderName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για