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

AllowContentWithSameName Gets or sets a value indicating whether multiple content itemas 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.
Content 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.
Layout Gets or sets the default layout.
Layouts Gets or sets the allowed layouts.

Methods

AllowedContent() 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.
IsContentAllowed(Guid) Gets a value indicating whether the specied content item is allowed.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
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.