ConnectionStringSettings.ProviderName Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 2.0
Return to top
Show: