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 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. |