Skip to main content

FileSystemItem.DateModified Property

Specifies a timestamp that indicates when the file system item was last modified.

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DateTime DateModified { get; set; }

Property Value

Type Description
DateTime

A timestamp.

Remarks

The following example illustrates how to specify the DateModified property for a file system item inside the GetItems(FileSystemLoadItemOptions) method. Refer to the FileManager - Binding to Entity Framework ORM online demo to see the whole code.

File system provider:

public IEnumerable<FileSystemItem> GetItems(FileSystemLoadItemOptions options) {
    int parentId = ParseKey(options.Directory.Key);
    var fileItems = GetDirectoryContents(parentId);

    var clientItemList = new List<FileSystemItem>();
    foreach(var item in fileItems) {
        var clientItem = new FileSystemItem {
            DateModified = item.Modified,
            //...
        };
        clientItemList.Add(clientItem);
    }
    return clientItemList;
}

Concepts

Online Demos

See Also