API Reference: FolderAttribute Class

The FolderAttribute can be applied to content model classes. The attribute specifies that the content model type represents a Folder node in an Asset Library node collection. Content models decorated with a FolderAttribute can only be added to Asset Libraries.

If FolderAttribute is not specified on a content model, and no other node type attributes have been set either, this content model is available for use only as a nested content model. See content models for an explanation of different content model node types.

Usage

Decorate the content model class with the FolderAttribute. The attribute does not require any parameters. The attribute is inherited, so if you have decorated this attribute on a base class of this model, the derived class is also considered a Folder node type by default.

Example

The following example specifies that a content model of type MediaFolder can be used for Folder nodes in an Asset Library.

[Folder]
public class MediaFolder: IContentType
{
    // ...
}