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 是否提供任何價值。

備註

此特性對應於連接字串中的「上下文連接」鍵。

Note

DataSource若 的null連接字串為「context connection=true」,則回傳SqlConnection該屬性。

適用於

另請參閱