Export (0) Print
Expand All

ConnectionStringSettings.ProviderName Property

Gets or sets the provider name property.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

[ConfigurationPropertyAttribute("providerName", DefaultValue = "System.Data.SqlClient")]
public string ProviderName { get; set; }

Property Value

Type: System.String
Gets or sets the ProviderName property.

The following example shows how to use the ProviderName property.

Console.WriteLine("  Provider Name: {0}", 
    cs.ProviderName);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft