Redigera

Dela via


DiagnosticsConfigurationHandler.Create(Object, Object, XmlNode) Method

Definition

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

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

public:
 virtual System::Object ^ Create(System::Object ^ parent, System::Object ^ configContext, System::Xml::XmlNode ^ section);
public virtual object Create (object parent, object configContext, System.Xml.XmlNode section);
abstract member Create : obj * obj * System.Xml.XmlNode -> obj
override this.Create : obj * obj * System.Xml.XmlNode -> obj
Public Overridable Function Create (parent As Object, configContext As Object, section As XmlNode) As Object

Parameters

parent
Object

The object inherited from the parent path.

configContext
Object

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

section
XmlNode

The root XML node at the section to handle.

Returns

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

Implements

Exceptions

Switches could not be found.

-or-

Assert could not be found.

-or-

Trace could not be found.

-or-

Performance counters could not be found.

Remarks

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

Applies to