Class ContentAssetFolder
Represents a folder in the content assets tree. A content asset folder is used to host assets related to a content item.
Implements
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.Core
Assembly: EPiServer.dll
Version: 10.10.4Syntax
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 |