Class HostNameCollection

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

Constructors

HostNameCollection()

Declaration
public HostNameCollection()

Properties

SiteId

Declaration
public string SiteId { get; set; }
Property Value
Type Description
System.String

Methods

Add(HostNameElement)

Declaration
public void Add(HostNameElement element)
Parameters
Type Name Description
HostNameElement element

Clear()

Declaration
public void Clear()

Get(String)

Declaration
public HostNameElement Get(string hostName)
Parameters
Type Name Description
System.String hostName
Returns
Type Description
HostNameElement

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 hostName)
Parameters
Type Name Description
System.String hostName