SqlConnectionStringBuilder.ContextConnection プロパティ

定義

注意事項

ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.

互換性のために残されています。 SQL Server に対し、クライアント/サーバー接続を行うか、インプロセス接続を行うかを示す値を取得または設定します。

public:
 property bool ContextConnection { bool get(); void set(bool value); };
public bool ContextConnection { get; set; }
[System.Obsolete("ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.")]
public bool ContextConnection { get; set; }
member this.ContextConnection : bool with get, set
[<System.Obsolete("ContextConnection has been deprecated. SqlConnection will ignore the 'Context Connection' keyword.")>]
member this.ContextConnection : bool with get, set
Public Property ContextConnection As Boolean

プロパティ値

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

属性

注釈

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

注意

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

適用対象