SqlConnectionStringBuilder.ConnectionReset Property



This API is now obsolete.

已过时。Obsolete. 获取或设置一个布尔值,该值指示在从连接池中提取连接时是否重置连接。Gets or sets a Boolean value that indicates whether the connection is reset when drawn from the connection pool.

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

Property Value


ConnectionReset 属性的值;如果未提供任何值,则为 true。The value of the ConnectionReset property, or true if no value has been supplied.



此属性与 SqlConnection 连接字符串内的“Connection Reset”键相对应,该键已从 .NET Framework 3.5 SP1 版本中移除。This property corresponds to the "Connection Reset" key within the SqlConnection connection string, which has been removed from version 3.5 SP1 of the .NET Framework.

Applies to

See also