src/NLog/Targets/EventLogTarget.cs
/// <summary>
/// Performs uninstallation which requires administrative permissions.
/// </summary>
/// <param name="installationContext">The installation context.</param>
Performs uninstallation which requires administrative permissions.
Performs uninstallation which requires administrative permissions .
public void Uninstall(InstallationContext installationContext)
        {
            var fixedSource = GetFixedSource();
            if (string.IsNullOrEmpty(fixedSource))
            {
                InternalLogger.Debug("EventLogTarget(Name={0}): Skipping removing of event source because it contains layout renderers", Name);
            }
            else
            {
                _eventLogWrapper.DeleteEventSource(fixedSource, MachineName);
            }
        }
public void Uninstall ( InstallationContext installationContext ) { var fixedSource = GetFixedSource ( ) ; if ( string . IsNullOrEmpty ( fixedSource ) ) { InternalLogger . Debug ( " " , Name ) ; } else { _eventLogWrapper . DeleteEventSource ( fixedSource , MachineName ) ; } }
Performs uninstallation which requires administrative permissions.
Performs uninstallation which requires administrative permissions .
installationContext
InstallationContext
The installation context.
The installation context .