Class CapyEventArgs

Namespace: CapyKit
Assembly: CapyKit.dll

The CapyEventArgs class represents an event argument instance with event level, message, and method name information.

public class CapyEventArgs : EventArgs

Inheritance

objectEventArgsCapyEventArgs

Inherited Members

EventArgs.Empty, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods

ObjectExtensions.UpdateProperties<CapyEventArgs>(CapyEventArgs, CapyEventArgs), ObjectExtensions.UpdateProperties(object, object)

Constructors

CapyEventArgs(EventLevel, string, string)

Initializes a new instance of the CapyEventArgs class with the specified event level, message, and method name.

public CapyEventArgs(EventLevel level, string message, string method = null)

Parameters

level EventLevel

The severity level of the event.

message string

A descriptive message explaining the reason for the event.

method string

The name of the method where the event was raised.

Properties

Level

Gets the severity level of the event.

public EventLevel Level { get; }

Property Value

EventLevel

Message

Gets the message describing the reason for the event.

public string Message { get; }

Property Value

string

MethodName

Gets the name of the method where the event was raised.

public string MethodName { get; }

Property Value

string