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

Interface ISiteDefinitionRepository

The repository that handles loading and persisting of sites, see SiteDefinition.

Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface ISiteDefinitionRepository

Methods

Delete(Guid)

Deletes the SiteDefinition with specified id.

Declaration
void Delete(Guid id)
Parameters
Type Name Description
System.Guid id

The id.

Get(Guid)

Gets the SiteDefinition with specified id.

Declaration
SiteDefinition Get(Guid id)
Parameters
Type Name Description
System.Guid id

The id.

Returns
Type Description
SiteDefinition

The site definition with specified id

List()

Lists all defined SiteDefinition.

Declaration
IEnumerable<SiteDefinition> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<SiteDefinition>

All registered sites

Save(SiteDefinition)

Saves the specified site definition.

Declaration
void Save(SiteDefinition siteDefinition)
Parameters
Type Name Description
SiteDefinition siteDefinition

The site definition.

Events

SiteDefinitionChanged

Occurs when some SiteDefinition was changed or deleted.

Declaration
event EventHandler<EventArgs> SiteDefinitionChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>

Extension Methods