AppAttribute Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Attribute for providing metadata about apps.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class AppAttribute : PluginAttribute, _Attribute
Inheritance:
System.Object → System.Attribute → PluginAttributeAppAttribute
Attributes:
System.AttributeUsageAttribute

Constructors

AppAttribute() Initializes a new instance of the AppAttribute class.

Properties

AllowChildrenWithSameName Gets or sets a value indicating whether multiple content items with the same name are allowed in the app.
AllowMultiple Gets or sets a value indicating whether users can add multiple instances of the app to a space.
Children Gets or sets the System.Type of content allowed in the app, null means no content allowed and an an empty list means that any type of content is allowed.
IsSystem Gets or sets a value indicating that the app is a system app and treated a bit different, for instance hidden in the add app menu.
Layout Gets or sets the default layout.
Layouts Gets or sets the allowed layouts.
SortBy Gets or sets the default sort order.
SortBys Gets the possible ways to sort content.

Methods

AllowedChildren() Gets the allowed content types for the app as a comma separated string of guids, null means no content allowed and "*" means any type of content is allowed.
IsChildAllowed(Guid) Gets a value indicating whether the specied content item is an allowed child item.

Extension Methods

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.