Class SiteDefinitionRepository

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

Inheritance
System.Object
SiteDefinitionRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[Obsolete("Use ISiteDefinitionRepository instead")]
public class SiteDefinitionRepository : ISiteDefinitionRepository

Constructors

SiteDefinitionRepository()

Declaration
public SiteDefinitionRepository()

Methods

Delete(Guid)

Deletes the SiteDefinition with specified id.

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

The id.

Get(Guid)

Gets the SiteDefinition with specified id.

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

The id.

Returns
Type Description
SiteDefinition

Get(String)

Gets the SiteDefinition with specified name.

Declaration
public virtual SiteDefinition Get(string name)
Parameters
Type Name Description
System.String name

The name.

Returns
Type Description
SiteDefinition

List()

Lists all defined SiteDefinition.

Declaration
public virtual IEnumerable<SiteDefinition> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<SiteDefinition>
Exceptions
Type Condition
System.NotImplementedException

OnSiteDefinitionChanged()

Called when site definition changed.

Declaration
protected virtual void OnSiteDefinitionChanged()

Save(SiteDefinition)

Saves the specified site definition.

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

The site definition.

Events

SiteDefinitionChanged

Occurs when some SiteDefinition was changed or deleted.

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

Implements

Extension Methods