Class SiteElementCollection
Inheritance
System.Object
SiteElementCollection
Assembly: EPiServer.Configuration.dll
Version: 9.12.2
Syntax
[Obsolete("CMS sites are not setup in configuration anymore. Use SiteDefinitionRepository to create sites.")]
public class SiteElementCollection : GenericConfigurationElementCollection<SiteElement>
Constructors
SiteElementCollection()
Declaration
public SiteElementCollection()
Properties
CollectionType
Declaration
public override ConfigurationElementCollectionType CollectionType { get; }
Property Value
Type |
Description |
System.Configuration.ConfigurationElementCollectionType |
|
Overrides
EPiServer.Configuration.GenericConfigurationElementCollection<EPiServer.Configuration.SiteElement>.CollectionType
ElementName
Declaration
protected override string ElementName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Add(SiteElement)
Declaration
public void Add(SiteElement element)
Parameters
Clear()
Declaration
CreateNewElement()
Declaration
protected override ConfigurationElement CreateNewElement()
Returns
Type |
Description |
System.Configuration.ConfigurationElement |
|
Overrides
EPiServer.Configuration.GenericConfigurationElementCollection<EPiServer.Configuration.SiteElement>.CreateNewElement()
GetElementKey(ConfigurationElement)
Declaration
protected override object GetElementKey(ConfigurationElement element)
Parameters
Type |
Name |
Description |
System.Configuration.ConfigurationElement |
element |
|
Returns
Type |
Description |
System.Object |
|
Overrides
EPiServer.Configuration.GenericConfigurationElementCollection<EPiServer.Configuration.SiteElement>.GetElementKey(System.Configuration.ConfigurationElement)
Remove(SiteElement)
Declaration
public void Remove(SiteElement element)
Parameters
Remove(String)
Declaration
public void Remove(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Extension Methods