Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
EventId Struct
Definition
- Namespace:
- Microsoft.Extensions.Logging
- Assembly:
- Microsoft.Extensions.Logging.Abstractions.dll
- Package:
- Microsoft.Extensions.Logging.Abstractions v11.0.0-preview.5.26302.115
- Source:
- EventId.cs
- Source:
- EventId.cs
- Source:
- EventId.cs
- Source:
- EventId.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies a logging event. The primary identifier is the "Id" property, with the "Name" property providing a short description of this type of event.
public value class EventId : IEquatable<Microsoft::Extensions::Logging::EventId>
public readonly struct EventId : IEquatable<Microsoft.Extensions.Logging.EventId>
type EventId = struct
Public Structure EventId
Implements IEquatable(Of EventId)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| EventId(Int32, String) |
Initializes an instance of the EventId struct. |
Properties
| Name | Description |
|---|---|
| Id |
Gets the numeric identifier for this event. |
| Name |
Gets the name of this event. |
Methods
| Name | Description |
|---|---|
| Equals(EventId) |
Compares the current instance to another object of the same type. Two events are equal if they have the same ID. |
| Equals(Object) |
Indicates whether this instance and a specified object are equal. |
| GetHashCode() |
Returns the hash code for this instance. |
| ToString() |
Returns the fully qualified type name of this instance. |
Operators
| Name | Description |
|---|---|
| Equality(EventId, EventId) |
Checks if two specified EventId instances have the same value. They are equal if they have the same ID. |
| Implicit(Int32 to EventId) |
Implicitly creates an EventId from the given Int32. |
| Inequality(EventId, EventId) |
Checks if two specified EventId instances have different values. |
Applies to
Feedback
Was this page helpful?
