Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Reading File Metadata

Reading File Metadata

The Backend Services .NET SDK provides methods for retrieving metadata about single and multiple files based on an ID or a filter expression. The metadata contains the file's download URL.

Single File

To get a file's metadata by ID, you have to execute the following code snippet:

public void GetSingleFileMetadata(EverliveApp app, Guid fileId)
{
    app.WorkWith().Files().GetById(fileId).ExecuteSync();
}

Multiple Files' Metadata

In order to get the metadata of multiple files by filter, you have to execute the following code snippet:

public void GetMultipleFilesMetadata(EverliveApp app, DateTime date)
{
       app.WorkWith().Files().Get().Where(f => f.CreatedAt > date).ExecuteSync();
}

Note: The DateTime object must have set DateTimeKind property in order to be accepted by the server.

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.