Share via


DatabaseLogFormatter.Stopwatch 属性

定义

注意

This stopwatch can give incorrect times. Use 'GetStopwatch' instead.

此属性已过时。 使用它可能会导致记录不正确的执行时间。 请改为调用 GetStopwatch(DbCommandInterceptionContext)

[System.Obsolete("This stopwatch can give incorrect times. Use 'GetStopwatch' instead.")]
protected internal System.Diagnostics.Stopwatch Stopwatch { get; }
member this.Stopwatch : System.Diagnostics.Stopwatch
Protected Friend ReadOnly Property Stopwatch As Stopwatch

属性值

属性

适用于