Table of Contents

Struct EventId

Namespace
Microsoft.Extensions.Logging
Assembly
Microsoft.Extensions.Logging.Abstractions.dll
public struct EventId
Inherited Members

Constructors

EventId(int, string)

public EventId(int id, string name = null)

Parameters

id int
name string

Properties

Id

public int Id { get; }

Property Value

int

Name

public string Name { get; }

Property Value

string

Methods

Equals(EventId)

public bool Equals(EventId other)

Parameters

other EventId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EventId, EventId)

public static bool operator ==(EventId left, EventId right)

Parameters

left EventId
right EventId

Returns

bool

implicit operator EventId(int)

public static implicit operator EventId(int i)

Parameters

i int

Returns

EventId

operator !=(EventId, EventId)

public static bool operator !=(EventId left, EventId right)

Parameters

left EventId
right EventId

Returns

bool