WriteWindowsEventLog(EventType,String,Object[]) 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.
public static void WriteWindowsEventLog(
DNALog.EventType eventType,
string formatString,
params object[] args
)
public:
static void WriteWindowsEventLog(
DNALog.EventType eventType,
String^ formatString,
... array<Object^>^ args
)
Parameters
- eventType
- The event type that should be displayed with this message in the Windows Event Log.
- formatString
- A String containing zero or more format specifications.
- args
- An Object array containing zero or more objects to be formatted.