Language

SqlConnectionStringBuilder.ContextConnection プロパティ

定義

SQL Server へのクライアント/サーバーまたはインプロセス接続を行う必要があるかどうかを示す値を取得または設定します。

この API では、SQL Server共通言語ランタイム (SQLCLR) コンテキスト接続がサポートされます。 新しいクライアント アプリケーションの開発には、Microsoftを使用します。Data.SqlClient;は、SQLCLR コンテキスト接続用に System.Data.SqlClient を保持します。

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。

注釈

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

Note

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

適用対象

関連項目