ConnectionStringSettings.ConnectionString プロパティ

定義

接続文字列を取得または設定します。

public:
 property System::String ^ ConnectionString { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("connectionString", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)]
public string ConnectionString { get; set; }
public string ConnectionString { get; set; }
[<System.Configuration.ConfigurationProperty("connectionString", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
member this.ConnectionString : string with get, set
member this.ConnectionString : string with get, set
Public Property ConnectionString As String

プロパティ値

ConnectionString プロパティに代入された文字列値。

属性

ConnectionString プロパティを使用する方法を次の例に示します。

Console.WriteLine("  Connection String: \"{0}\"",
    cs.ConnectionString);
Console.WriteLine( _
"  Connection String: ""{0}""", cs.ConnectionString)

適用対象

こちらもご覧ください