IConfigurationSectionHandler.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.

Creates a configuration section handler.

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

object Create(
	object parent,
	object configContext,
	XmlNode section


Type: System.Object

Parent object.

Type: System.Object

Configuration context object.

Type: System.Xml.XmlNode

Section XML node.

Return Value

Type: System.Object

The created section handler object.

Instances of the IConfigurationSectionHandler class must be thread safe and stateless. The Create method must be callable from multiple threads simultaneously.

Furthermore, the configuration object generated by the Create method must be thread safe and immutable. Because the configuration objects are cached by the configuration system, it is important not to modify the parent argument to Create. For example, if the return value of Create is only a small modification of the parent, actual modifications must be made on a clone of the parent, not the original.

.NET Framework
Available since 1.1
Return to top