次の方法で共有


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

注釈

このプロパティは、接続文字列内の "コンテキスト接続" キーに対応します。

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

適用対象

こちらもご覧ください