SqlConnectionStringBuilder.ConnectionReset 属性

定义

注意

ConnectionReset has been deprecated. SqlConnection will ignore the 'connection reset' keyword and always reset the connection

Obsolete. 获取或设置一个布尔值,该值指示是否从连接池绘制连接时重置连接。

public:
 property bool ConnectionReset { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
[System.Obsolete("ConnectionReset has been deprecated.  SqlConnection will ignore the 'connection reset' keyword and always reset the connection")]
public bool ConnectionReset { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("ConnectionReset has been deprecated.  SqlConnection will ignore the 'connection reset' keyword and always reset the connection")>]
member this.ConnectionReset : bool with get, set
Public Property ConnectionReset As Boolean

属性值

属性的值 ConnectionReset ;如果未提供任何值,则为 true。

属性

注解

此属性对应于 SqlConnection 连接字符串 中的“连接重置”密钥,该密钥已从 .NET Framework 的版本 3.5 SP1 中删除。

适用于

另请参阅