Folder Class

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

A folder used for organizing files.

Also used as fallback when actual folder implementation cannot be resolved.

[Boost(0.9F)]
[Guid("6722D818-0CC6-4876-B514-7D19664ED90C")]
[Content(Icon = "folder", Color = "amber", Name = "Folder", Description = "A folder for organizing files.", SingularName = "a folder", PluralName = "folders", Layout = Layout.Table, Layouts = new Layout[]{Layout.Card, Layout.Table}, SortBy = SortBy.Name, SortBys = new SortBy[]{SortBy.Name, SortBy.Modified, SortBy.Kind, SortBy.Size}, Parents = new Type[]{typeof(FilesApp), typeof(Folder)}, Children = new Type[]{}, CreateMode = UpsertMode.Modal, ModifyMode = UpsertMode.Modal)]
public class Folder : Content, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, IValidatableObject, IFolder, IContent, IExtension, IAppEntity, ISpaceEntity, ITrashable, IFollowable, IStarrable, IEntity, ICloneable
Inheritance:
System.Object → ExpandoContentFolder
Attributes:
BoostAttribute, System.Runtime.InteropServices.GuidAttribute, ContentAttribute
Implements:
IExpando, IFolder, IContent, IExtension, IAppEntity, ISpaceEntity, ITrashable, IFollowable, IStarrable, IEntity

Constructors

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

Properties

FollowedByIds Gets the ids of the Users that follow the space.
StarredByIds Gets the ids of the users that have starred the item.

Methods

Clone() Create a deep copy of the current object.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
MetaData(Content) Gets meta data for the specified content item.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, 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.
FAB(Content) Returns a FAB with links for adding child content.