共用方式為


EventDefinitionBase 建構函式

定義

多載

EventDefinitionBase(EventId, LogLevel)

建立事件定義實例。

EventDefinitionBase(EventId, LogLevel, String)

建立事件定義實例。

EventDefinitionBase(ILoggingOptions, EventId, LogLevel, String)

建立事件定義實例。

EventDefinitionBase(EventId, LogLevel)

建立事件定義實例。

protected EventDefinitionBase (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase
Protected Sub New (eventId As EventId, level As LogLevel)

參數

eventId
EventId

EventId

level
LogLevel

LogLevel 記錄事件的 。

適用於

EventDefinitionBase(EventId, LogLevel, String)

建立事件定義實例。

protected EventDefinitionBase (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase
Protected Sub New (eventId As EventId, level As LogLevel, eventIdCode As String)

參數

eventId
EventId

EventId

level
LogLevel

LogLevel 記錄事件的 。

eventIdCode
String

字串,表示應該傳遞至 ConfigureWanings 的程式碼。

適用於

EventDefinitionBase(ILoggingOptions, EventId, LogLevel, String)

建立事件定義實例。

protected EventDefinitionBase (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase
Protected Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String)

參數

loggingOptions
ILoggingOptions

記錄選項。

eventId
EventId

EventId

level
LogLevel

LogLevel 記錄事件的 。

eventIdCode
String

字串,表示應該傳遞至 ConfigureWarnings(Action<WarningsConfigurationBuilder>) 的程式碼。

適用於