API Reference: AssetAttribute Class

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

If AssetAttribute is not specified on a content model, and no other model 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.

Example

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

[Asset]
public class Image: IContentType
{
    // ...
}
In this article