Share via


ConfigurationElementCollectionBase<T>.CreateNewElement(String) Method

Definition

Creates a new element by using the specified element name.

protected:
 virtual T CreateNewElement(System::String ^ elementTagName);
protected virtual T CreateNewElement (string elementTagName);
abstract member CreateNewElement : string -> 'T
override this.CreateNewElement : string -> 'T
Protected Overridable Function CreateNewElement (elementTagName As String) As T

Parameters

elementTagName
String

The name of the element to create.

Returns

T

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

Remarks

Both overloads of the CreateElement method call the CreateNewElement method.

Applies to