Sitefinity CMS

Important Interfaces of Libraries Module Send comments on this topic.
See Also
Developing with Sitefinity > Modules > Modules API > Generic Content Based Modules > Images and Documents > Important Interfaces of Libraries Module

Glossary Item Box

The Images and Documents module creates and works with the following kinds of data:

  • Library
  • Images
  • Documents

Library represents a container of files and implements the ILibrary interface. The items inside the file could be images or documents and have the same functionality as the content items of the Generic Content module - this is why they implement the IContent interface.

 

Following is a description of the ILibrary interfaces and its members: 

ILibrary Members

All libraries need to implement this interface:

Member name  Member type  Comments
ID  Guid  Unique identifier (Primary key) of the library item.
Name string

Library name.

Owner string

Username of the user who owns the library.

Size long Returns the size of a library item.
MaxSize long Maximum size allowed for a library item.
MaxFileSize long Maximum size allowed for a file stored in a library item.
MaxFiles int  Maximum number of files allowed in a library item.
LastModifiedDateEnabled bool? Determines whether the LastModification date would be added to the library items response header. If null, gets the default setting.
Expiration Expiration 

Gets or sets the library expiration settings.

TypeName string 

Library type name. Possible values:

  • Document
  • Image
  • Custom
DateCreated DateTime 

Date of creation of the library item.

ItemsCount int The number of items in a library item.
GetItems() IList Gets the library items.

 

See Also