共用方式為


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)

適用於

另請參閱