EventId(Int32, String) 构造函数

定义

初始化 EventId 结构的实例。Initializes an instance of the EventId struct.

public EventId (int id, string name = default);
new Microsoft.Extensions.Logging.EventId : int * string -> Microsoft.Extensions.Logging.EventId
Public Sub New (id As Integer, Optional name As String = Nothing)

参数

id
Int32

此事件的数值标识符。The numeric identifier for this event.

name
String

此事件的名称。The name of this event.

适用于