skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Interface IResourceStorage

Represents a resource storage.

Inherited Members
IAssetsStorage.GetFolderContentsAsync(String)
IAssetsStorage.GetFolderAsync(String)
IAssetsStorage.CreateFolderAsync(CreateFolderModel)
IAssetsStorage.RenameFolderAsync(RenameFolderModel)
IAssetsStorage.DeleteFolderAsync(String)
IAssetsStorage.GetModelAsync(String)
IAssetsStorage.GetAsync(String)
IAssetsStorage.SaveAsync(SaveResourceModel, Byte[])
IAssetsStorage.RenameAsync(RenameResourceModel)
IAssetsStorage.DeleteAsync(String)
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll

Syntax

public interface IResourceStorage : IAssetsStorage

Methods

FolderExists(String)

Determines if the given folder uri exists.

Declaration
bool FolderExists(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the folder.

Returns
System.Boolean

true, if the folder exists, else false

FolderHasContents(String)

Determines if the given folder uri has contents

Declaration
bool FolderHasContents(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the folder

Returns
System.Boolean

true, if the folder has contents, else false

FolderNameExists(String)

Determines if the given folder folderName exists.

Declaration
bool FolderNameExists(string folderName)
Parameters
System.String folderName

The path to the folder using Name identifiers.

Returns
System.Boolean

true, if the folder exists, else false

GetAllByExtension(String[])

Returns the ids of the resource files that match the specified search extensions in the resource storage.

Declaration
IEnumerable<ResourceFileModel> GetAllByExtension(string[] extensions)
Parameters
System.String[] extensions

Returns
System.Collections.Generic.IEnumerable<ResourceFileModel>

GetByUri(String)

Finds a resource by its uri and returns its contents as byte array.

Declaration
byte[] GetByUri(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the resource.

Returns
System.Byte[]

GetFile(String)

Finds a resource by its URI and returns a model containing the download data.

Declaration
ResourceFileDataModel GetFile(string resourceUri)
Parameters
System.String resourceUri

The URI of the resource.

Returns
ResourceFileDataModel

ResourceFileDataModel, containg the information about the resource.

GetFolderByName(String)

Gets the folder model at folderName.

Declaration
ResourceFolderModel GetFolderByName(string folderName)
Parameters
System.String folderName

The path to the folder using Name identifiers.

Returns
ResourceFolderModel

The ResourceFolderModel of the obtained folder.

GetModelByName(String)

Finds a resource by its name and returns the information about it.

Declaration
ResourceFileModel GetModelByName(string resourceName)
Parameters
System.String resourceName

The full path to the resource using Name identifiers.

Returns
ResourceFileModel

ResourceFileModel, containg the information about the resource.

Move(MoveResourceModel)

Moves the given resource NewParentUri

Declaration
ResourceFileModel Move(MoveResourceModel model)
Parameters
MoveResourceModel model

The model containing the move operation data

Returns
ResourceFileModel

ResourceFileModel, containg the information about the file.

MoveFolder(MoveFolderModel)

Moves a folder from the given OldUri to NewParentUri, including all of its content

Declaration
ResourceFolderModel MoveFolder(MoveFolderModel model)
Parameters
MoveFolderModel model

The model containing the move operation data

Returns
ResourceFolderModel

The ResourceFolderModel of the newly created folder

Overwrite(OverwriteResourceModel, Byte[])

Overwrites the given resource contents with resource

Declaration
ResourceFileModel Overwrite(OverwriteResourceModel model, byte[] resource)
Parameters
OverwriteResourceModel model

The model containing the overwrite operation data

System.Byte[] resource

The new contents of the resource

Returns
ResourceFileModel

ResourceFileModel, containg the information about the file.

ResourceExists(String)

Determines if a resource with the provided URI exists.

Declaration
bool ResourceExists(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the resource.

Returns
System.Boolean

true, if the resource exists, else false.

ResourceNameExists(String)

Determines if a resource with the provided name exists.

Declaration
bool ResourceNameExists(string resourceName)
Parameters
System.String resourceName

The full path to the resource using Name identifiers.

Returns
System.Boolean

true, if the resource exists, else false.

Save(String, Byte[])

Saves the new bytes of a resource name and returns the resource file's location.

Declaration
[Obsolete("Telerik.WebReportDesigner.Services.IResourceStorage.Save(string, byte[]) is now obsolete. Please use Telerik.WebReportDesigner.Services.IResourceStorage.Save(SaveResourceModel, byte[])", false)]
string Save(string resourceName, byte[] resource)
Parameters
System.String resourceName

System.Byte[] resource

Returns
System.String

Search(SearchResourcesModel)

Searches for resource in the given ResourceFolderUri

Declaration
IEnumerable<ResourceModelBase> Search(SearchResourcesModel model)
Parameters
SearchResourcesModel model

The model containing the search operation data

Returns
System.Collections.Generic.IEnumerable<ResourceModelBase>

The search results, both files and folders, as an enumerable of ResourceModelBase

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.