SaaS CMS has officially launched! Learn more now.

Class ContentAssetFolder

Represents a folder in the content assets tree. A content asset folder is used to host assets related to a content item.

Inheritance
System.Object
ContentAssetFolder
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentAssetFolder : ContentFolder, IInitializableContent, IModifiedTrackable, IContent, IContentData, IChangeTrackable, IExportable, IReadOnly<ContentFolder>, IReadOnly, IContentSecurable, ISecurable, IRoutable, IContentAsset

Constructors

ContentAssetFolder()

Declaration
public ContentAssetFolder()

Properties

ContentOwnerID

The content item that owns this asset folder

Declaration
public Guid ContentOwnerID { get; set; }
Property Value
Type Description
System.Guid

Methods

Attach(IContent)

Attaches this folder instance as asset folder for specified content instance.

Declaration
public virtual void Attach(IContent content)
Parameters
Type Name Description
IContent content

The content.

Remarks

The attach method will only set references between the content and the asset folder. Both content and folder needs to be saved to persist the connection.

Exceptions
Type Condition
System.ArgumentNullException

If the specified content is null.

System.ArgumentException

If the specified content does not implement IResourcable

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()

Returns the owners ACL

Declaration
public override IContentSecurityDescriptor GetContentSecurityDescriptor()
Returns
Type Description
IContentSecurityDescriptor

The ACL of the owner

Overrides

Implements

Extension Methods