Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
IConfigurationSectionHandler..::.Create Method

Creates a configuration section handler.

Namespace:  System.Configuration
Assembly:  System (in System.dll)
Visual Basic (Declaration)
Function Create ( _
    parent As Object, _
    configContext As Object, _
    section As XmlNode _
) As Object
Visual Basic (Usage)
Dim instance As IConfigurationSectionHandler
Dim parent As Object
Dim configContext As Object
Dim section As XmlNode
Dim returnValue As Object

returnValue = instance.Create(parent, _
    configContext, section)
C#
Object Create(
    Object parent,
    Object configContext,
    XmlNode section
)
Visual C++
Object^ Create(
    Object^ parent, 
    Object^ configContext, 
    XmlNode^ section
)
JScript
function Create(
    parent : Object, 
    configContext : Object, 
    section : XmlNode
) : Object

Parameters

parent
Type: System..::.Object
Parent object.
configContext
Type: System..::.Object
Configuration context object.
section
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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker