ServiceProvidersEventData 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個 DiagnosticSource 用於引用多個 IServiceProvider 容器的事件有效載荷類別。
[System.Runtime.CompilerServices.Nullable(0)]
public class ServiceProvidersEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventData
public class ServiceProvidersEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type ServiceProvidersEventData = class
inherit EventData
type ServiceProvidersEventData = class
inherit EventData
Public Class ServiceProvidersEventData
Inherits EventData
- 繼承
- 屬性
備註
更多資訊與範例請參閱 日誌、事件與診斷 。
建構函式
| 名稱 | Description |
|---|---|
| ServiceProvidersEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, ICollection<IServiceProvider>) |
負責建構事件有效載荷。 |
屬性
| 名稱 | Description |
|---|---|
| EventId |
那 EventId 就是訊息的 ID 和名稱。 (繼承來源 EventData) |
| EventIdCode |
一個字串代表該事件定義的程式碼。 (繼承來源 EventData) |
| LogLevel |
LogLevel那個會用來記錄這個事件的訊息。 (繼承來源 EventData) |
| ServiceProviders |
方法
| 名稱 | Description |
|---|---|
| ToString() |
一段記錄訊息描述此事件。 (繼承來源 EventData) |