November Happy Hour will be moved to Thursday December 5th.

Class SiteHostsCollection

Inheritance
System.Object
SiteHostsCollection
Namespace: EPiServer.Framework.Configuration
Assembly: EPiServer.Framework.dll
Version: 9.12.2
Syntax
[Obsolete("Use EPiServer.Web.SiteDefinitionRepository and SiteDefinition in EPiServer.dll to work with sites")]
public class SiteHostsCollection : ConfigurationElementCollection<HostNameCollection>

Constructors

SiteHostsCollection()

Declaration
public SiteHostsCollection()

Methods

Add(HostNameCollection)

Declaration
public void Add(HostNameCollection siteHostsElement)
Parameters
Type Name Description
HostNameCollection siteHostsElement

Clear()

Declaration
public void Clear()

Get(String)

Declaration
public HostNameCollection Get(string siteId)
Parameters
Type Name Description
System.String siteId
Returns
Type Description
HostNameCollection

GetElementKey(ConfigurationElement)

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

Remove(String)

Declaration
public void Remove(string siteId)
Parameters
Type Name Description
System.String siteId

Extension Methods