ConfigurationElementCollectionBase<T>.CreateElement Method ()


Creates a new child element for the current collection.

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

public T CreateElement()

Return Value

Type: T

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

This overload creates an element by using the <add> element name defined in the configuration schema. To specify the name of the child item being created, use the CreateElement(String) overload, which takes a string parameter.

Return to top