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

プロパティ値

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

実装

属性

注釈

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

適用対象

こちらもご覧ください