Share via


ConfigurationElementCollectionBase<T>.AddAt(Int32, T) Method

Definition

Adds a configuration element to the current collection at the specified index.

public:
 T AddAt(int index, T element);
public T AddAt (int index, T element);
member this.AddAt : int * 'T -> 'T
Public Function AddAt (index As Integer, element As T) As T

Parameters

index
Int32

The index in the collection where the new element should be inserted.

element
T

The new configuration element to add to the current collection.

Returns

T

A reference to the strongly typed configuration element that is added to the collection.

Applies to