SqlConnectionStringBuilder.ConnectionReset 属性

定义

注意

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

注意

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

已过时。 获取或设置一个布尔值,该值指示在从连接池中提取连接时是否重置连接。

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.")]
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
[<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 连接字符串内的“Connection Reset”键相对应,该键已从 .NET Framework 3.5 SP1 版本中移除。

适用于