Class SystemDefinition

Holds system wide settings like global roots for files, blocks etc.

Inheritance
System.Object
SystemDefinition
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: 8.11.0
Syntax
[ServiceConfiguration(ServiceType = typeof(SystemDefinition), FactoryMember = "Current", Lifecycle = ServiceInstanceScope.Hybrid)]
public class SystemDefinition

Constructors

SystemDefinition(ContentReference, ContentReference, ContentReference, ContentReference)

Initializes a new instance of the SystemDefinition class.

Declaration
public SystemDefinition(ContentReference rootPage, ContentReference wasteBasket, ContentReference globalAssetsRoot, ContentReference contentAssetsRoot)
Parameters
Type Name Description
ContentReference rootPage

The root page.

ContentReference wasteBasket

The waste basket.

ContentReference globalAssetsRoot

The global assets root.

ContentReference contentAssetsRoot

The content assets root.

Properties

ContentAssetsRoot

Gets or sets the reference for the root that holds content related assets.

Declaration
public virtual ContentReference ContentAssetsRoot { get; }
Property Value
Type Description
ContentReference

The content assets root.

Current

Returns the instance of SystemDefinition.

Declaration
public static SystemDefinition Current { get; set; }
Property Value
Type Description
SystemDefinition
Remarks

During runtime it will load the definition from database. During unit tests the value can either be set or otherwise it will return a SystemDefinition instance with all roots set to EmptyReference

GlobalAssetsRoot

Gets the reference for the global assets root.

Declaration
public virtual ContentReference GlobalAssetsRoot { get; }
Property Value
Type Description
ContentReference

The global assets root.

RootPage

Gets the reference for the root page.

Declaration
public virtual ContentReference RootPage { get; }
Property Value
Type Description
ContentReference

The root page.

WasteBasket

Gets the reference for the waste basket.

Declaration
public virtual ContentReference WasteBasket { get; }
Property Value
Type Description
ContentReference

The waste basket.

Extension Methods