Skip to content

net90_EventLogHelper_SmartEventLogger_CanReadRegistryForLog

dparvin edited this page Aug 2, 2025 · 1 revision

SmartEventLogger.CanReadRegistryForLog method

Determines if the current user has access (read or write) to the registry key for a given event log.

public static bool CanReadRegistryForLog(string logName, string machineName, 
    bool writeAccess = false)
parameter description
logName The name of the event log.
machineName The target machine name, or "." for local machine.
writeAccess Optional. True to check for write access; otherwise, False for read-only access.

Return Value

True if access is permitted; otherwise, False.

See Also

Clone this wiki locally