Class CapyEventArgs
The CapyEventArgs class represents an event argument instance with event level, message, and method name information.
Namespace: CapyKit
Assembly: CapyKit.dll
Syntax
public class CapyEventArgs : EventArgs
Constructors
CapyEventArgs(EventLevel, string, string)
Initializes a new instance of the CapyEventArgs class with the specified event level, message, and method name.
Declaration
public CapyEventArgs(EventLevel level, string message, string method = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EventLevel | level | The severity level of the event. |
| string | message | A descriptive message explaining the reason for the event. |
| string | method | The name of the method where the event was raised. |
Properties
Level
Gets the severity level of the event.
Declaration
public EventLevel Level { get; }
Property Value
| Type | Description |
|---|---|
| EventLevel |
Message
Gets the message describing the reason for the event.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the name of the method where the event was raised.
Declaration
public string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |