Class ContentRootRepository
Repository for content roots.
Inheritance
System.Object
ContentRootRepository
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.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public abstract class ContentRootRepository
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 |