IConfigurationSectionHandler.Create(Object, Object, XmlNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a configuration section handler.
public:
System::Object ^ Create(System::Object ^ parent, System::Object ^ configContext, System::Xml::XmlNode ^ section);
public object Create (object parent, object configContext, System.Xml.XmlNode section);
abstract member Create : obj * obj * System.Xml.XmlNode -> obj
Public Function Create (parent As Object, configContext As Object, section As XmlNode) As Object
Parameters
- parent
- Object
Parent object.
- configContext
- Object
Configuration context object.
- section
- XmlNode
Section XML node.
Returns
The created section handler object.
Remarks
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.