System.Configuration.IConfigurationSectionHandler Interface

Assembly: System.dll
Namespace: System.Configuration
Summary
Defines the contract that all configuration section handlers must implement in order to participate in the resolution of configuration settings.
C# Syntax:
public interface IConfigurationSectionHandler
See also:
System.Configuration Namespace

System.Configuration.IConfigurationSectionHandler Member List:

Public Methods
Create Implemented by all configuration section handlers to parse the XML of the configuration section. The returned object is added to the configuration collection and is accessed by ConfigurationSettings.GetConfig.

System.Configuration.IConfigurationSectionHandler Member Details

Method: Create(
   object parent,
   object configContext,
   XmlNode section
)
Summary
Implemented by all configuration section handlers to parse the XML of the configuration section. The returned object is added to the configuration collection and is accessed by ConfigurationSettings.GetConfig.
C# Syntax:
object Create(
   object parent,
   object configContext,
   XmlNode section
);
Parameters:

parent

The configuration settings in a corresponding parent configuration section.

configContext

An HttpConfigurationContext when IConfigurationSectionHandler.Create is called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is null.

section

The XmlNode that contains the configuration information from the configuration file. Provides direct access to the XML contents of the configuration section.

Return Value:
A configuration object.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.