SqlConnectionStringBuilder.ConnectionReset 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 版本中移除。