IDiagnosticsLogger.NeedsEventData Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| NeedsEventData(EventDefinitionBase, Boolean, Boolean) |
EventData DiagnosticSource Belirtilen olay için bir veya etkinleştirilmiş olup olmadığına bağlı olarak bir örneğin gerekli olup olmadığını belirler IDbContextLogger . |
| NeedsEventData<TInterceptor>(EventDefinitionBase, TInterceptor, Boolean, Boolean) |
EventData DiagnosticSource IDbContextLogger Belirtilen olay için bir, bir veya etkinleştirilmiş olup olmadığına bağlı olarak bir örneğin gerekli olup olmadığını belirler IInterceptor . |
NeedsEventData(EventDefinitionBase, Boolean, Boolean)
EventData DiagnosticSource Belirtilen olay için bir veya etkinleştirilmiş olup olmadığına bağlı olarak bir örneğin gerekli olup olmadığını belirler IDbContextLogger .
public virtual bool NeedsEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out bool diagnosticSourceEnabled, out bool simpleLogEnabled);
abstract member NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * bool * bool -> bool
override this.NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * bool * bool -> bool
Public Overridable Function NeedsEventData (definition As EventDefinitionBase, ByRef diagnosticSourceEnabled As Boolean, ByRef simpleLogEnabled As Boolean) As Boolean
Parametreler
- definition
- EventDefinitionBase
Etkinliğin tanımı.
- diagnosticSourceEnabled
- Boolean
Etkin değilse olarak ayarlayın true DiagnosticSource ; false Aksi takdirde.
- simpleLogEnabled
- Boolean
Etkinse, true, yoksa true IDbContextLogger false .
Döndürülenler
true bir tanılama kaynağı veya LogTo günlükçüsü etkinse; false Aksi takdirde.
Şunlara uygulanır
NeedsEventData<TInterceptor>(EventDefinitionBase, TInterceptor, Boolean, Boolean)
EventData DiagnosticSource IDbContextLogger Belirtilen olay için bir, bir veya etkinleştirilmiş olup olmadığına bağlı olarak bir örneğin gerekli olup olmadığını belirler IInterceptor .
public virtual bool NeedsEventData<TInterceptor> (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out TInterceptor interceptor, out bool diagnosticSourceEnabled, out bool simpleLogEnabled) where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
public virtual bool NeedsEventData<TInterceptor> (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out TInterceptor? interceptor, out bool diagnosticSourceEnabled, out bool simpleLogEnabled) where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
abstract member NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * 'Interceptor * bool * bool -> bool (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
override this.NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * 'Interceptor * bool * bool -> bool (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
Public Overridable Function NeedsEventData(Of TInterceptor As {Class, IInterceptor}) (definition As EventDefinitionBase, ByRef interceptor As TInterceptor, ByRef diagnosticSourceEnabled As Boolean, ByRef simpleLogEnabled As Boolean) As Boolean
Tür Parametreleri
- TInterceptor
Parametreler
- definition
- EventDefinitionBase
Etkinliğin tanımı.
- interceptor
- TInterceptor
IInterceptorEtkinleştirilirse kullanılacak; Aksi takdirde null.
- diagnosticSourceEnabled
- Boolean
Etkin değilse olarak ayarlayın true DiagnosticSource ; false Aksi takdirde.
- simpleLogEnabled
- Boolean
Etkinse, true, yoksa true IDbContextLogger false .
Döndürülenler
true bir tanılama kaynağı, LogTo günlükçüsü veya bir şifre çözücü etkinse; false Aksi takdirde.