# Class CapyEventArgs Namespace: [CapyKit](CapyKit.md) Assembly: CapyKit.dll The CapyEventArgs class represents an event argument instance with event level, message, and method name information. ```csharp public class CapyEventArgs : EventArgs ``` #### Inheritance [object](https://learn.microsoft.com/dotnet/api/system.object) ← [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) ← [CapyEventArgs](CapyKit.CapyEventArgs.md) #### Inherited Members [EventArgs.Empty](https://learn.microsoft.com/dotnet/api/system.eventargs.empty), [object.Equals\(object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)), [object.Equals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)), [object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring) #### Extension Methods [ObjectExtensions.UpdateProperties\(CapyEventArgs, CapyEventArgs\)](CapyKit.Extensions.ObjectExtensions.md\#CapyKit\_Extensions\_ObjectExtensions\_UpdateProperties\_\_1\_\_\_0\_\_\_0\_), [ObjectExtensions.UpdateProperties\(object, object\)](CapyKit.Extensions.ObjectExtensions.md\#CapyKit\_Extensions\_ObjectExtensions\_UpdateProperties\_System\_Object\_System\_Object\_) ## Constructors ### CapyEventArgs\(EventLevel, string, string\) Initializes a new instance of the CapyEventArgs class with the specified event level, message, and method name. ```csharp public CapyEventArgs(EventLevel level, string message, string method = null) ``` #### Parameters `level` [EventLevel](CapyKit.EventLevel.md) The severity level of the event. `message` [string](https://learn.microsoft.com/dotnet/api/system.string) A descriptive message explaining the reason for the event. `method` [string](https://learn.microsoft.com/dotnet/api/system.string) The name of the method where the event was raised. ## Properties ### Level Gets the severity level of the event. ```csharp public EventLevel Level { get; } ``` #### Property Value [EventLevel](CapyKit.EventLevel.md) ### Message Gets the message describing the reason for the event. ```csharp public string Message { get; } ``` #### Property Value [string](https://learn.microsoft.com/dotnet/api/system.string) ### MethodName Gets the name of the method where the event was raised. ```csharp public string MethodName { get; } ``` #### Property Value [string](https://learn.microsoft.com/dotnet/api/system.string)