96 references to SR
System.Diagnostics.EventLog (96)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (2)
134throw new InvalidOperationException(SR.Format(SR.RegKeyMissingShort, "HKEY_LOCAL_MACHINE", machineName));
System\Diagnostics\EventLog.cs (50)
256throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 262throw new ArgumentException(SR.BadLogName); 264throw new ArgumentException(SR.Format(SR.MissingParameter, nameof(source))); 266throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length)); 275throw new ArgumentException(SR.Format(SR.LocalSourceAlreadyExists, source)); 277throw new ArgumentException(SR.Format(SR.SourceAlreadyExists, source, machineName)); 296throw new InvalidOperationException(SR.Format(SR.RegKeyMissing, "SYSTEM\\CurrentControlSet\\Services\\EventLog", logName, source, machineName)); 298throw new InvalidOperationException(SR.Format(SR.LocalRegKeyMissing, "SYSTEM\\CurrentControlSet\\Services\\EventLog", logName, source)); 308throw new ArgumentException(SR.Format(SR.InvalidCustomerLogName, logName)); 318throw new ArgumentException(SR.Format(SR.LocalLogAlreadyExistsAsSource, logName)); 320throw new ArgumentException(SR.Format(SR.LogAlreadyExistsAsSource, logName, machineName)); 366throw new ArgumentException(SR.Format(SR.InvalidParameterFormat, nameof(machineName)), nameof(machineName)); 368throw new ArgumentException(SR.NoLogName); 370throw new InvalidOperationException(SR.BadLogName); 383throw new InvalidOperationException(SR.Format(SR.RegKeyNoAccess, "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog", machineName)); 389throw new InvalidOperationException(SR.Format(SR.MissingLog, logName, machineName)); 441throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 456throw new ArgumentException(SR.Format(SR.LocalSourceNotRegistered, source)); 458throw new ArgumentException(SR.Format(SR.SourceNotRegistered, source, machineName, "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog")); 465throw new InvalidOperationException(SR.Format(SR.CannotDeleteEqualSource, source)); 503throw new ArgumentException(SR.Format(SR.InvalidParameterFormat, nameof(machineName))); 605throw new SecurityException(SR.Format(wantToCreate ? SR.SomeLogsInaccessibleToCreate : SR.SomeLogsInaccessible, source, machineName, inaccessibleLogs)); 626throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 639throw new InvalidOperationException(SR.Format(SR.RegKeyMissingShort, EventLogKey, machineName)); 732throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 1061throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length));
System\Diagnostics\EventLogEntry.cs (2)
157StringBuilder msgBuf = new StringBuilder(SR.Format(SR.MessageNotFormatted, msgId, Source));
System\Diagnostics\EventLogEntryCollection.cs (1)
86throw new InvalidOperationException(SR.NoCurrentEntry);
System\Diagnostics\EventLogInternal.cs (41)
110throw new ArgumentException(SR.BadLogName); 113throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName)); 189throw new InvalidOperationException(SR.Format(SR.MissingLog, GetLogName(currentMachineName), currentMachineName)); 264throw new ArgumentOutOfRangeException("MaximumKilobytes", SR.MaximumKilobytesOutOfRange); 428throw new InvalidOperationException(SR.CantMonitorEventLog, new Win32Exception()); 452throw new InvalidOperationException(SR.InitTwice); 769throw new InvalidOperationException(SR.CantRetrieveEntries, new Win32Exception(error)); 771throw new InvalidOperationException(SR.CantRetrieveEntries); 851throw new ArgumentException(SR.Format(SR.IndexOutOfBounds, index.ToString())); 930throw new InvalidOperationException(SR.Format(SR.CantReadLogEntryAt, index.ToString()), new Win32Exception()); 970throw new InvalidOperationException(SR.BadLogName); 979throw new InvalidOperationException(SR.Format(SR.RegKeyMissingShort, EventLogKey, currentMachineName)); 983throw new InvalidOperationException(SR.Format(SR.MissingLog, logname, currentMachineName)); 1001throw new InvalidOperationException(SR.Format(SR.MissingLog, GetLogName(currentMachineName), currentMachineName)); 1043throw new ArgumentOutOfRangeException(SR.RentionDaysOutOfRange); 1061throw new ArgumentException(SR.MissingLogProperty); 1064throw new InvalidOperationException(SR.Format(SR.LogDoesNotExists, logname, currentMachineName)); 1083throw new InvalidOperationException(SR.Format(SR.CantOpenLog, logname, currentMachineName, e?.Message ?? "")); 1097throw new ArgumentException(SR.NeedSourceToOpen); 1108throw new InvalidOperationException(SR.Format(SR.CantOpenLogAccess, sourceName), e); 1277throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName)); 1294throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName)); 1304throw new ArgumentException(SR.Format(SR.EventID, eventID.ToString(), 0, ushort.MaxValue)); 1307throw new ArgumentException(SR.NeedSourceToWrite); 1330throw new ArgumentException(SR.NeedSourceToWrite); 1359throw new ArgumentException(SR.TooManyReplacementStrings); 1368throw new ArgumentException(SR.LogEntryTooLong); 1373throw new ArgumentException(SR.NeedSourceToWrite);