SqlConnectionStringBuilder.ConnectionReset Property

Definition

Caution

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

Caution

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

Obsolete. Gets or sets a Boolean value that indicates whether the connection is reset when drawn from the connection pool.

C#
[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; }
C#
[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; }

Property Value

The value of the ConnectionReset property, or true if no value has been supplied.

Attributes

Remarks

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

Product Versions (Obsolete)
SqlClient .NET Framework (1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.1, 5.2)