23 references to Format
System.Diagnostics.PerformanceCounter (23)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
134
throw new InvalidOperationException(SR.
Format
(SR.RegKeyMissingShort, "HKEY_LOCAL_MACHINE", machineName));
System\Diagnostics\PerformanceCounter.cs (2)
296
throw new ArgumentException(SR.
Format
(SR.InvalidProperty, nameof(MachineName), value), nameof(value));
477
throw new InvalidOperationException(SR.
Format
(SR.CounterExists, currentCategoryName, _counterName));
System\Diagnostics\PerformanceCounterCategory.cs (15)
49
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(categoryName), categoryName), nameof(categoryName));
52
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(machineName), machineName), nameof(machineName));
74
throw new ArgumentException(SR.
Format
(SR.InvalidProperty, nameof(CategoryName), value), nameof(value));
132
throw new ArgumentException(SR.
Format
(SR.InvalidProperty, nameof(MachineName), value), nameof(value));
168
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(categoryName), categoryName), nameof(categoryName));
171
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(machineName), machineName), nameof(machineName));
246
throw new ArgumentException(SR.
Format
(SR.PerfInvalidCategoryName, 1, MaxCategoryNameLength));
259
throw new ArgumentException(SR.
Format
(SR.PerfInvalidCounterName, 1, MaxCounterNameLength));
290
throw new ArgumentException(SR.
Format
(SR.PerfInvalidHelp, 0, MaxHelpLength));
411
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(categoryName), categoryName), nameof(categoryName));
414
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(machineName), machineName), nameof(machineName));
463
throw new InvalidOperationException(SR.
Format
(SR.MissingInstance, instanceName, _categoryName));
488
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(machineName), machineName), nameof(machineName));
542
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(categoryName), categoryName), nameof(categoryName));
545
throw new ArgumentException(SR.
Format
(SR.InvalidParameter, nameof(machineName), machineName), nameof(machineName));
System\Diagnostics\PerformanceData\CounterSet.cs (3)
114
throw new ArgumentException(SR.
Format
(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
156
throw new ArgumentException(SR.
Format
(SR.Perflib_Argument_CounterNameAlreadyExists, counterName, _counterSet), nameof(counterName));
160
throw new ArgumentException(SR.
Format
(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
52
throw new ArgumentException(SR.
Format
(SR.Perflib_Argument_InstanceAlreadyExists, _instName, _counterSet._counterSet), nameof(instanceName));
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
128
throw new InsufficientMemoryException(SR.
Format
(SR.Perflib_InsufficientMemory_InstanceCounterBlock, _instance._counterSet._counterSet, _instance._instName));