Indicates which content view models are allowed to be added to this property.

[AttributeUsage]
public sealed class AllowContentTypeAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeAllowContentTypeAttribute
Implements:
IContentPropertyAttribute

Constructors

AllowContentTypeAttribute(Type) Default constructor.

Properties

ContentTypes Gets or sets the content model types that content in this section or property must have. Types must implement the interface.

Methods

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