共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionDisposed 方法

定義

ConnectionDisposed事件的記錄。

public void ConnectionDisposed (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
abstract member ConnectionDisposed : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> unit
Public Sub ConnectionDisposed (connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan)

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

duration
TimeSpan

處置連線所花費的時間量。

適用於