AllowAtRootAttribute Class

AllowAtRootAttribute Class

Specifies that this view model can be used for the root page in a site or a root item in a library.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class AllowAtRootAttribute: Attribute, IPageModelAttribute, IContentModelAttribute

Inheritance  Attribute AllowAtRootAttribute

Implements  IPageModelAttribute, IContentModelAttribute

Methods

Name Description
Apply(PageDefinition) Applies this attribute's settings to the definition model. Automatically called by the Redakt system on startup.
Apply(ContentDefinition) Applies this attribute's settings to the definition model. Automatically called by the Redakt system on startup.