DiagnosticsConfigurationHandler.Create Method (Object, Object, XmlNode)


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

This API supports the product infrastructure and is not intended to be used directly from your code.

Parses the configuration settings for the <system.diagnostics> Element section of configuration files.

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

public virtual object Create(
	object parent,
	object configContext,
	XmlNode section


Type: System.Object

The object inherited from the parent path

Type: System.Object

Reserved. Used in ASP.NET to convey the virtual path of the configuration being evaluated.

Type: System.Xml.XmlNode

The root XML node at the section to handle.

Return Value

Type: System.Object

A new configuration object, in the form of a Hashtable.

Exception Condition

Switches could not be found.


Assert could not be found.


Trace could not be found.


Performance counters could not be found.

The Create method populates a Hashtable with the values obtained from the <system.diagnostics> Element section of a configuration file and returns the hashtable.

.NET Framework
Available since 1.1
Return to top