Try our conversational search powered by Generative AI!

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

Declaration
protected override object CreateWriteableCloneImplementation()
Returns
Type Description
System.Object
Overrides

GetContentSecurityDescriptor()

Returns the owners ACL

Declaration
public override IContentSecurityDescriptor GetContentSecurityDescriptor()
Returns
Type Description
IContentSecurityDescriptor

The ACL of the owner

Overrides

Implements

Extension Methods

EPiServer.Core.IContentExtensions.GetPropertyName<TContent>(TContent, System.Linq.Expressions.Expression<System.Func<TContent, System.Object>>)
EPiServer.Core.IContentExtensions.GetTargetFrame(EPiServer.Core.IContent)
EPiServer.Core.IContentExtensions.GetForceCurrentVersionSaveAction(EPiServer.Core.IContent)