PerformanceCounterScope Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Specifies whether performance counters for the assembly are enabled.

Namespace:   System.ServiceModel.Diagnostics
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public enum PerformanceCounterScope

Member nameDescription

Performance counters can be viewed at runtime.


A single performance counter instance _WCF_Admin is created. This instance is used to enable the collection of SQM data for used by the infrastructure. None of the counter values for this instance are updated and therefore will remain at zero. This is the default value if no configuration is present for Windows Communication Foundation (WCF).


Performance counters are disabled. This is the default value.


Only performance counters relevant to this service is enabled.

This enumeration is used to configure the PerformanceCounters property to indicate whether performance counters are enabled for diagnostics purpose.

.NET Framework
Available since 3.0
Return to top