Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
Methods
 Create Method
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

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

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

[Visual Basic]
Function Create( _
   ByVal parent As Object, _
   ByVal configContext As Object, _
   ByVal section As XmlNode _
) As Object
[C#]
object Create(
   object parent,
 object configContext,
 XmlNode section
);
[C++]
Object* Create(
   Object* parent,
 Object* configContext,
 XmlNode* section
);
[JScript]
function Create(
   parent : Object,
 configContext : Object,
 section : XmlNode
) : Object;

Parameters

parent
The configuration settings in a corresponding parent configuration section.
configContext
An HttpConfigurationContext when Create is called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is a null reference (Nothing in Visual Basic).
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.

Remarks

You should not directly return a value type from Create. A value return type will be boxed as an object type that is a reference to the original value type field. A malicious user could obtain the reference to the value type and change the original value. Always clone value type variables that will be boxed as object return types.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IConfigurationSectionHandler Interface | IConfigurationSectionHandler Members | System.Configuration Namespace

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker