Class ContentRootRepository
Repository for content roots.
Inheritance
System.Object
ContentRootRepository
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class ContentRootRepository : Object
Constructors
ContentRootRepository()
Declaration
protected ContentRootRepository()
Methods
Clear()
Clear all roots.
Declaration
public abstract void Clear()
Delete(String)
Delete a content root
Declaration
public abstract void Delete(string rootName)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootName | The root name |
List()
list of all content roots.
Declaration
public abstract IDictionary<string, ContentReference> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, ContentReference> |
Load(String)
Load the content root for the rootname.
Declaration
public abstract ContentReference Load(string rootName)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootName | the root name |
Returns
Type | Description |
---|---|
ContentReference |
Save(String, ContentReference)
Save a content root.
Declaration
public abstract void Save(string rootName, ContentReference contentRoot)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootName | The root name |
ContentReference | contentRoot | The content root |