Sprache

IRelationalCommandDiagnosticsLogger.CommandCanceled Methode

Definition

Überlädt

CommandCanceled(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs

Protokolliert das CommandCanceled Ereignis.

public void CommandCanceled(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandCanceled : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> unit
Public Sub CommandCanceled (connection As IRelationalConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)

Parameter

connection
IRelationalConnection

Die Verbindung.

command
DbCommand

Das Datenbankbefehlsobjekt.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

executeMethod
DbCommandMethod

Stellt die Methode dar, die aufgerufen wird, um den Befehl auszuführen.

commandId
Guid

Die Korrelations-ID, die dem angegebenen DbCommandZugeordnet ist.

connectionId
Guid

Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.

startTime
DateTimeOffset

Die Zeit, zu der die Ausführung begann.

duration
TimeSpan

Die Zeitspanne, die bis zum Auslösen der Ausnahme überschritten wurde.

commandSource
CommandSource

Quelle des Befehls.

Gilt für:

CommandCanceled(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs

Protokolliert das CommandCanceled Ereignis.

public void CommandCanceled(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandCanceled : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> unit
Public Sub CommandCanceled (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)

Parameter

connection
IRelationalConnection

Die Verbindung.

command
DbCommand

Das Datenbankbefehlsobjekt.

logCommandText
String

Der Befehlstext, der protokolliert werden kann.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

executeMethod
DbCommandMethod

Stellt die Methode dar, die aufgerufen wird, um den Befehl auszuführen.

commandId
Guid

Die Korrelations-ID, die dem angegebenen DbCommandZugeordnet ist.

connectionId
Guid

Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.

startTime
DateTimeOffset

Die Zeit, zu der die Ausführung begann.

duration
TimeSpan

Die Zeitspanne, die bis zum Abbrechen des Befehls übergeben wurde.

commandSource
CommandSource

Quelle des Befehls.

Gilt für: