语言

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

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

返回

秒表。

适用于