Class ContentFolder
Represents a folder in a content tree. A content folder is used to structure content and has no visual appearance on the site.
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[AdministrationSettings(GroupName = "systemtypes", Visible = true, CodeOnly = true, Order = 10000)]
public class ContentFolder : BasicContent, IInitializableContent, IModifiedTrackable, IContent, IContentData, IChangeTrackable, IExportable, IReadOnly<ContentFolder>, IReadOnly, IContentSecurable, ISecurable, IRoutable
Constructors
ContentFolder()
Declaration
public ContentFolder()
Properties
IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
protected override bool IsModified { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Name
Overwrite name with translation for root folder
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
RouteSegment
Gets or sets the Route segment.
Declaration
public string RouteSegment { get; set; }
Property Value
Type | Description |
---|---|
System.String | The Route segment. |
Methods
CreateWritableClone()
Creates the writable clone.
Declaration
public ContentFolder CreateWritableClone()
Returns
Type | Description |
---|---|
ContentFolder |
CreateWriteableCloneImplementation()
Creates a writable clone of this object.
Declaration
protected override object CreateWriteableCloneImplementation()
Returns
Type | Description |
---|---|
System.Object | A clone of this object that is writable. |
Overrides
Remarks
This method is called by CreateWritableClone(). If you are inheriting, directly or indirectly, from ContentData you should override this method to make sure that all reference type members of your class are cloned.
Your override of this method must create the clone by calling base.CreateWritableCloneImplementation()
. This ensures that all
classes in the inheritance chain can create clones as necessary. Also, by calling the base implementation the values of all value
type members are copied as the ContentData implementation of this method calls System.Object.MemberwiseClone().
GetContentSecurityDescriptor()
Declaration
public virtual IContentSecurityDescriptor GetContentSecurityDescriptor()
Returns
Type | Description |
---|---|
IContentSecurityDescriptor |
GetSecurityDescriptor()
Gets the security descriptor.
Declaration
public ISecurityDescriptor GetSecurityDescriptor()
Returns
Type | Description |
---|---|
ISecurityDescriptor | An implementation of ISecurityDescriptor. |
MakeReadOnly()
Makes the current instance and all it's properties read-only.
Declaration
public override void MakeReadOnly()
Overrides
Remarks
After calling this method the IsReadOnly property will return true
.
ResetModified()
Resets the modified flag on all the properties in the Property collection.
Declaration
protected override void ResetModified()