SqlConnectionStringBuilder.ContextConnection プロパティ

定義

SQL Server に対し、クライアント/サーバー接続を行うか、インプロセス接続を行うかを示す値を取得または設定します。

public:
 property bool ContextConnection { bool get(); void set(bool value); };
public bool ContextConnection { get; set; }
member this.ContextConnection : bool with get, set
Public Property ContextConnection As Boolean

プロパティ値

ContextConnection プロパティの値。値が指定されていない場合は False

注釈

このプロパティは、接続文字列内の "Context Connection" キーに対応しています。

Note

の接続文字列が "context connection=true" の場合、 SqlConnection プロパティは DataSource を返nullします。

適用対象

こちらもご覧ください