Skip to content

net90_EventLogHelper.Interfaces_IEventLogWriter_Exists

dparvin edited this page Sep 10, 2025 · 1 revision

IEventLogWriter.Exists method

Determines whether the specified event log exists on the given machine.

public bool Exists(string logName, string machineName)
parameter description
logName The name of the event log to check (e.g., "Application", "System", or a custom log).
machineName The name of the target machine (use "." for the local machine).

Return Value

True if the log exists; otherwise, False.

Remarks

Wraps String) to enable testable checks for log existence.

See Also

Clone this wiki locally