Class GenericConfigurationElementCollection<T>

Collection of configuration elements

Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 8.11.0
Syntax
public class GenericConfigurationElementCollection<T> : ConfigurationElementCollection where T : ConfigurationElementBase, new()
Type Parameters
Name Description
T

configuration element type

Constructors

GenericConfigurationElementCollection()

Declaration
public GenericConfigurationElementCollection()

Properties

CollectionType

returns the collection type

Declaration
public override ConfigurationElementCollectionType CollectionType { get; }
Property Value
Type Description
System.Configuration.ConfigurationElementCollectionType

Item[Int32]

indexer

Declaration
public T this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index

index

Property Value
Type Description
T

configuration element

Methods

CreateNewElement()

Creates a new configuration element of the generic type

Declaration
protected override ConfigurationElement CreateNewElement()
Returns
Type Description
System.Configuration.ConfigurationElement

GetElementKey(ConfigurationElement)

returns the element key for the configuration

Declaration
protected override object GetElementKey(ConfigurationElement element)
Parameters
Type Name Description
System.Configuration.ConfigurationElement element
Returns
Type Description
System.Object

IsElementName(String)

Checks if a name mathces the element type

Declaration
protected override bool IsElementName(string elementName)
Parameters
Type Name Description
System.String elementName

the name to check

Returns
Type Description
System.Boolean

if matches element type

Extension Methods