2 writes to instanceName
System (2)
services\monitoring\system\diagnosticts\PerformanceCounter.cs (2)
74
instanceName
= String.Empty;
279
instanceName
= value;
18 references to instanceName
System (18)
services\monitoring\system\diagnosticts\PerformanceCounter.cs (18)
270
return
instanceName
;
273
if (value == null &&
instanceName
== null)
276
if ((value == null &&
instanceName
!= null) ||
277
(value != null &&
instanceName
== null) ||
278
String.Compare(
instanceName
, value, StringComparison.OrdinalIgnoreCase) != 0) {
501
if (String.IsNullOrEmpty(
instanceName
))
504
if (!String.IsNullOrEmpty(
instanceName
))
527
if (String.IsNullOrEmpty(
instanceName
))
530
if (!String.IsNullOrEmpty(
instanceName
))
534
if (String.IsNullOrEmpty(
instanceName
) && InstanceLifetime == PerformanceCounterInstanceLifetime.Process)
537
this.sharedCounter = new SharedPerformanceCounter(currentCategoryName.ToLower(CultureInfo.InvariantCulture), counterName.ToLower(CultureInfo.InvariantCulture),
instanceName
.ToLower(CultureInfo.InvariantCulture), instanceLifetime);
564
if (
instanceName
!= null &&
instanceName
.Length != 0)
565
throw new InvalidOperationException(SR.GetString(SR.InstanceNameProhibited, this.
instanceName
));
570
if (
instanceName
== null ||
instanceName
.Length == 0)
573
return counterSample.GetInstanceValue(this.
instanceName
);
602
sharedCounter.RemoveInstance(this.
instanceName
.ToLower(CultureInfo.InvariantCulture), instanceLifetime);