Skip to content

net472_EventLogHelper_SmartEventLogger_MaxSource

dparvin edited this page Aug 2, 2025 · 1 revision

SmartEventLogger.MaxSource method

Truncates the source name to meet the maximum length allowed by the Windows Event Log system.

public static string MaxSource(string sourceName)
parameter description
sourceName The original source name.

Return Value

A source name no longer than 211 characters.

Remarks

If the input is null or empty, the method will derive a source name using the calling method.

See Also

Clone this wiki locally