DefaultSectionAttribute Class

DefaultSectionAttribute Class

Specifies the default section name for properties that do not have a section explicitly set. If this attribute is ommitted, the default section name is "Content".

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

Inheritance  Attribute DefaultSectionAttribute

Implements  IPageModelAttribute, IContentModelAttribute

Constructors

Name Description
DefaultSectionAttribute(string)

Methods

Name Description
Apply(PageDefinition)
Apply(ContentDefinition)