ConnectionStringSettings.ProviderName 属性

定义

获取或设置提供程序名称属性。

public:
 property System::String ^ ProviderName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("providerName", DefaultValue="System.Data.SqlClient")]
public string ProviderName { get; set; }
public string ProviderName { get; set; }
[<System.Configuration.ConfigurationProperty("providerName", DefaultValue="System.Data.SqlClient")>]
member this.ProviderName : string with get, set
member this.ProviderName : string with get, set
Public Property ProviderName As String

属性值

ProviderName 属性。

属性

示例

下面的示例演示如何使用 ProviderName 属性。

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

适用于

另请参阅