96 lines
3.1 KiB
Markdown
96 lines
3.1 KiB
Markdown
# <a id="CapyKit_CapyEventArgs"></a> 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, 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
|
|
|
|
### <a id="CapyKit_CapyEventArgs__ctor_CapyKit_EventLevel_System_String_System_String_"></a> 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
|
|
|
|
### <a id="CapyKit_CapyEventArgs_Level"></a> Level
|
|
|
|
Gets the severity level of the event.
|
|
|
|
```csharp
|
|
public EventLevel Level { get; }
|
|
```
|
|
|
|
#### Property Value
|
|
|
|
[EventLevel](CapyKit.EventLevel.md)
|
|
|
|
### <a id="CapyKit_CapyEventArgs_Message"></a> 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)
|
|
|
|
### <a id="CapyKit_CapyEventArgs_MethodName"></a> 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)
|
|
|