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