Skip to content

net472_EventLogHelper_SmartEventLogger_IsSourceRegisteredToLog

dparvin edited this page Aug 2, 2025 · 1 revision

SmartEventLogger.IsSourceRegisteredToLog method

Checks whether a specific source is registered to a specific event log on the specified machine.

public static bool IsSourceRegisteredToLog(string sourceName, string logName, string machineName)
parameter description
sourceName The name of the event source.
logName The name of the event log (e.g., "Application").
machineName The target machine name, or "." for the local machine.

Return Value

True if the source is registered; otherwise, False.

See Also

Clone this wiki locally