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