Class SystemDefinition
Holds system wide settings like global roots for files, blocks etc.
Inheritance
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class SystemDefinition : Object
Constructors
SystemDefinition(ContentReference, ContentReference, ContentReference, ContentReference)
Initializes a new instance of the System
Declaration
public SystemDefinition(ContentReference rootPage, ContentReference wasteBasket, ContentReference globalAssetsRoot, ContentReference contentAssetsRoot)
Parameters
Type | Name | Description |
---|---|---|
Content |
rootPage | The root page. |
Content |
wasteBasket | The waste basket. |
Content |
globalAssetsRoot | The global assets root. |
Content |
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 |
---|---|
Content |
The content assets root. |
Current
Returns the instance of System
Declaration
public static SystemDefinition Current { get; set; }
Property Value
Type | Description |
---|---|
System |
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 Empty
GlobalAssetsRoot
Gets the reference for the global assets root.
Declaration
public virtual ContentReference GlobalAssetsRoot { get; }
Property Value
Type | Description |
---|---|
Content |
The global assets root. |
RootPage
Gets the reference for the root page.
Declaration
public virtual ContentReference RootPage { get; }
Property Value
Type | Description |
---|---|
Content |
The root page. |
WasteBasket
Gets the reference for the waste basket.
Declaration
public virtual ContentReference WasteBasket { get; }
Property Value
Type | Description |
---|---|
Content |
The waste basket. |