SqlConnection.StatisticsEnabled 屬性

定義

設定為 true 時,啟用目前連接的統計資料蒐集。

public:
 property bool StatisticsEnabled { bool get(); void set(bool value); };
public bool StatisticsEnabled { get; set; }
member this.StatisticsEnabled : bool with get, set
Public Property StatisticsEnabled As Boolean

屬性值

如果啟用統計資料蒐集,則傳回 true,否則傳回 falsefalse 是預設值。

備註

啟用統計數據收集對效能有次要但可測量的影響,因此只有在需要時才啟用。

適用於

另請參閱