FileSystemItem.Size Property

Specifies a file system item's size, in bytes.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll


public long Size { get; set; }

Property Value

Type Description

The size.


In the following example, the FileManager uses a custom file system provider to manage files and folders in Microsoft Azure Blob Storage. The Size property allows you to specify size for each file system item inside the GetItems(FileSystemLoadItemOptions) method. Refer to the FileManager - Azure Server-Side Binding online demo to see the whole code.

File system provider:

public IEnumerable<FileSystemItem> GetItems(FileSystemLoadItemOptions options) {
    var result = new List<FileSystemItem>();
    foreach(IListBlobItem blob in Results) {
        var item = new FileSystemItem();
        if(blob is CloudBlob) {
            var blockBlob = (CloudBlob)blob;
            item.Name = name;
            item.DateModified = blockBlob.Properties.LastModified.GetValueOrDefault().DateTime;
            item.Size = blockBlob.Properties.Length;


Online Demo

See Also