SqlConnectionStringBuilder.ConnectionReset 屬性

定義

警告

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

已過時。 取得或設定布林值,指出從連接集區提取時是否重設連接。

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; }

屬性值

ConnectionReset 屬性的值,如果未提供任何值則為 true。

屬性

備註

這個屬性會對應至 SqlConnection 連接字串內的 "Connection Reset" 索引鍵,該索引鍵已從 .NET Framework 3.5 SP1 版本中移除。

適用於

產品 版本 (已淘汰)
.NET Framework (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

另請參閱