Jagamisviis:


EventId Struct

Definition

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
EventId
Implements

Constructors

EventId(Int32, String)

Initializes an instance of the EventId struct.

Properties

Id

Gets the numeric identifier for this event.

Name

Gets the name of this event.

Methods

Equals(EventId)

Indicates whether the current object is equal 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

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