DbConnection.ConnectionString プロパティ

定義

派生クラスでオーバーライドされた場合、接続を開くために使用される文字列を取得または設定します。

public:
 abstract property System::String ^ ConnectionString { System::String ^ get(); void set(System::String ^ value); };
public abstract string ConnectionString { get; set; }
[System.ComponentModel.SettingsBindable(true)]
public abstract string ConnectionString { get; set; }
member this.ConnectionString : string with get, set
[<System.ComponentModel.SettingsBindable(true)>]
member this.ConnectionString : string with get, set
Public MustOverride Property ConnectionString As String

プロパティ値

String

初期接続を確立するために使用する接続文字列。 接続文字列の正確な内容は、この接続の特定のデータ ソースに応じて異なります。 既定値は空の文字列です。

実装

属性

注釈

接続文字列の正確な内容は、この接続の特定のデータ ソースに応じて異なります。 有効な設定を確認するには、使用している特定の種類の接続に関するドキュメントを参照してください。

適用対象

こちらもご覧ください