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”,SqlConnectionDataSource属性返回 null

适用于