DiagnosticsConfigurationHandler.Create Method (Object, Object, XmlNode)

 
System_CAPS_noteNote

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
)

Parameters

parent
Type: System.Object

The object inherited from the parent path

configContext
Type: System.Object

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

section
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
ConfigurationErrorsException

Switches could not be found.

-or-

Assert could not be found.

-or-

Trace could not be found.

-or-

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
Show: