Partager via


WarningsConfiguration.WithExplicit Méthode

Définition

Surcharges

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

Crée une instance avec le niveau de journal défini pour tous les ID d’événement donnés. Il est inhabituel d’appeler cette méthode directement. Utilisez WarningsConfigurationBuilder à la place.

WithExplicit(IEnumerable<EventId>, WarningBehavior)

Crée une instance avec l’ensemble explicite WarningBehavior donné pour tous les ID d’événement donnés. Il est inhabituel d’appeler cette méthode directement. Utilisez WarningsConfigurationBuilder à la place.

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

Crée une instance avec le niveau de journal défini pour tous les ID d’événement donnés. Il est inhabituel d’appeler cette méthode directement. Utilisez WarningsConfigurationBuilder à la place.

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

Paramètres

eventsAndLevels
IEnumerable<ValueTuple<EventId,LogLevel>>

ID d’événement et niveaux de journal correspondants à définir.

Retours

Une nouvelle instance avec les comportements définis.

S’applique à

WithExplicit(IEnumerable<EventId>, WarningBehavior)

Crée une instance avec l’ensemble explicite WarningBehavior donné pour tous les ID d’événement donnés. Il est inhabituel d’appeler cette méthode directement. Utilisez WarningsConfigurationBuilder à la place.

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

Paramètres

eventIds
IEnumerable<EventId>

ID d’événement pour lesquels le comportement doit être défini.

warningBehavior
WarningBehavior

Comportement à définir.

Retours

Une nouvelle instance avec les comportements définis.

S’applique à