Skip to content

net472_EventLogHelper.Interfaces_IEventLogWriter_SourceExists

dparvin edited this page Sep 10, 2025 · 1 revision

IEventLogWriter.SourceExists method

Determines whether the specified event source is registered on the given machine.

public bool SourceExists(string sourceName, string machineName)
parameter description
sourceName The event source name to check.
machineName The name of the target machine (use "." for the local machine).

Return Value

True if the source exists; otherwise, False.

Remarks

Wraps String) to allow testable verification of event sources.

See Also

Clone this wiki locally