ConfigurationElementCollectionBase<T>.CreateElement Method (String)


Creates a new child element by using the specified name.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public T CreateElement(
	string elementTagName


Type: System.String

The name of the element to create

Return Value

Type: T

A reference to the strongly typed configuration element that was created.

This overload creates an element by using the element name provided in the elementTagName parameter. To use the <add> element name defined in the configuration schema, use the CreateElement() overload, which takes no parameters.

Return to top