<performanceCounters> Element (Network Settings)

Enables or disables networking performance counters.




Attributes and Elements

The following sections describe attributes, child elements, and parent elements.


Attribute Description
enabled Specifies whether the networking performance counters are enabled. The default value is false.

Child Elements


Parent Elements

Element Description
settings Configures basic network options for the System.Net namespace.


This element can be used in the application configuration file or the machine configuration file (Machine.config).

Networking performance counters need to be enabled in the configuration file to be used. All networking performance counters are enabled or disabled with a single setting in the configuration file. Individual networking performance counters cannot be enabled or disabled. For more information on the specific networking performance counters, see Networking performance counters.

The default value is that networking performance counters are disabled.

The PerformanceCountersElement.Enabled property can be used to get the current value of the enabled attribute from applicable configuration files.


The following example shows how to configure the System.Net and related namespaces to enable networking performance counters.


See also