WriteWindowsEventLog Method
- Last UpdatedApr 08, 2026
- 1 minute read
Write a generic message to the Windows Event Log. This version of the method allows for a format string argument to be given, as per the System.String.Format(System.String,System.Object) method. The message written to the event log is then a copy of format in which the format specifications have been replaced by the String equivalent of the corresponding instances of Object in args.
| Overload | Description |
|---|---|
| WriteWindowsEventLog(EventType,String,Object[]) | Write a generic message to the Windows Event Log. This version of the method allows for a format string argument to be given, as per the System.String.Format(System.String,System.Object) method. The message written to the event log is then a copy of format in which the format specifications have been replaced by the String equivalent of the corresponding instances of Object in args. |
| WriteWindowsEventLog(EventType,String) | Write a generic message to the Windows Event Log. |