次の方法で共有


WarningsConfiguration.WithExplicit メソッド

定義

オーバーロード

WithExplicit(IEnumerable<ValueTuple<EventId,LogLevel>>)

指定されたすべてのイベント ID に対して指定されたログ レベルが設定された新しいインスタンスを作成します。 このメソッドを直接呼び出すのは異常です。 代わりに WarningsConfigurationBuilder を使用します。

WithExplicit(IEnumerable<EventId>, WarningBehavior)

指定されたすべてのイベント ID に対して、指定された明示的 WarningBehavior なセットを持つ新しいインスタンスを作成します。 このメソッドを直接呼び出すのは異常です。 代わりに WarningsConfigurationBuilder を使用します。

WithExplicit(IEnumerable<ValueTuple<EventId,LogLevel>>)

指定されたすべてのイベント ID に対して指定されたログ レベルが設定された新しいインスタンスを作成します。 このメソッドを直接呼び出すのは異常です。 代わりに WarningsConfigurationBuilder を使用します。

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration WithExplicit (System.Collections.Generic.IEnumerable<(Microsoft.Extensions.Logging.EventId Id, Microsoft.Extensions.Logging.LogLevel Level)> eventsAndLevels);
abstract member WithExplicit : seq<ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>> -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
override this.WithExplicit : seq<ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>> -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
Public Overridable Function WithExplicit (eventsAndLevels As IEnumerable(Of ValueTuple(Of EventId, LogLevel))) As WarningsConfiguration

パラメーター

eventsAndLevels
IEnumerable<ValueTuple<EventId,LogLevel>>

設定するイベント ID と対応するログ レベル。

戻り値

動作が設定された新しいインスタンス。

適用対象

WithExplicit(IEnumerable<EventId>, WarningBehavior)

指定されたすべてのイベント ID に対して、指定された明示的 WarningBehavior なセットを持つ新しいインスタンスを作成します。 このメソッドを直接呼び出すのは異常です。 代わりに WarningsConfigurationBuilder を使用します。

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration WithExplicit (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.EventId> eventIds, Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior);
abstract member WithExplicit : seq<Microsoft.Extensions.Logging.EventId> * Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
override this.WithExplicit : seq<Microsoft.Extensions.Logging.EventId> * Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
Public Overridable Function WithExplicit (eventIds As IEnumerable(Of EventId), warningBehavior As WarningBehavior) As WarningsConfiguration

パラメーター

eventIds
IEnumerable<EventId>

動作を設定する必要があるイベント ID。

warningBehavior
WarningBehavior

設定する動作。

戻り値

動作が設定された新しいインスタンス。

適用対象