CreateNewElement(String) Method
See Also 
SourceCode.Configuration Namespace > ExtensibleConfigurationElementCollection<TElement> Class > CreateNewElement Method : CreateNewElement(String) Method



elementName
The name of the System.Configuration.ConfigurationElement to create.

Glossary Item Box

Creates a new System.Configuration.ConfigurationElement when overridden in a derived class.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overrides Function CreateNewElement( _
   ByVal elementName As String _
) As ConfigurationElement
Visual Basic (Usage)Copy Code
Dim instance As ExtensibleConfigurationElementCollection(Of TElement)
Dim elementName As String
Dim value As ConfigurationElement
 
value = instance.CreateNewElement(elementName)
C# 
protected override ConfigurationElement CreateNewElement( 
   string elementName
)
C++/CLI 
protected:
ConfigurationElement^ CreateNewElement( 
   String^ elementName
) override 

Parameters

elementName
The name of the System.Configuration.ConfigurationElement to create.

Return Value

A new System.Configuration.ConfigurationElement with a specified name.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also