DatabaseLogFormatter.GetStopwatch(DbCommandInterceptionContext) 方法

定义

protected internal System.Diagnostics.Stopwatch GetStopwatch (System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
member this.GetStopwatch : System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> System.Diagnostics.Stopwatch
Protected Friend Function GetStopwatch (interceptionContext As DbCommandInterceptionContext) As Stopwatch

参数

interceptionContext
DbCommandInterceptionContext

要为其获取秒表的截获上下文。

返回

秒表。

适用于