CreateNewElement Method

ConfigurationElementCollectionBase<T>.CreateNewElement Method (String)

IIS 7.0
 

Creates a new element by using the specified element name.

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

protected virtual T CreateNewElement(
	string elementTagName
)

Parameters

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.

Both overloads of the CreateElement method call the CreateNewElement method.

Return to top
Show:
© 2016 Microsoft