共用方式為


ConnectionErrorEventData 建構函式

定義

多載

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

建構事件承載。

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

建構事件承載。

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

建構事件承載。

public ConnectionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Guid connectionId, Exception exception, bool async, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Guid * Exception * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, connectionId As Guid, exception As Exception, async As Boolean, startTime As DateTimeOffset, duration As TimeSpan)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件的記錄訊息的委派。

connection
DbConnection

DbConnection

connectionId
Guid

識別所使用實例的 DbConnection 相互關聯識別碼。

exception
Exception

連線失敗時所擲回的例外狀況。

async
Boolean

指出作業是否以非同步方式進行。

startTime
DateTimeOffset

此事件的開始時間。

duration
TimeSpan

此事件的持續時間。

適用於

ConnectionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, Guid, Exception, Boolean, DateTimeOffset, TimeSpan)

建構事件承載。

public ConnectionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext context, Guid connectionId, Exception exception, bool async, DateTimeOffset startTime, TimeSpan duration);
public ConnectionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext? context, Guid connectionId, Exception exception, bool async, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Guid * Exception * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, connectionId As Guid, exception As Exception, async As Boolean, startTime As DateTimeOffset, duration As TimeSpan)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件的記錄訊息的委派。

connection
DbConnection

DbConnection

context
DbContext

DbContext目前使用的 ,如果不知道,則為 null。

connectionId
Guid

識別所使用實例的 DbConnection 相互關聯識別碼。

exception
Exception

連線失敗時所擲回的例外狀況。

async
Boolean

指出作業是否以非同步方式進行。

startTime
DateTimeOffset

此事件的開始時間。

duration
TimeSpan

此事件的持續時間。

適用於