A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Services.IBasicFileService-1.html below:

View Source Interface IBasicFileService<TEntity> Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntax
public interface IBasicFileService<TEntity>
    where TEntity : IFile
Type Parameters Methods View Source GetAllAsync(String[])

Gets all by path, or all if no paths are specified.

Declaration
Task<IEnumerable<TEntity>> GetAllAsync(params string[] paths)
Parameters Type Name Description System.String[] paths

Optional paths of to get.

Returns Type Description Task<IEnumerable<TEntity>>

IEnumerable of

View Source GetAsync(String)

Gets by path.

Declaration
Task<TEntity> GetAsync(string path)
Parameters Type Name Description System.String path

The path to get from.

Returns Type Description Task<TEntity>

, or null if not found

View Source GetContentStreamAsync(String)

Get the content of a file as a stream.

Declaration
Task<Stream> GetContentStreamAsync(string path)
Parameters Type Name Description System.String path

The path to the file.

Returns Type Description Task<Stream>

A stream containing the contents of the file.

View Source GetFileSizeAsync(String) Declaration
Task<long> GetFileSizeAsync(string path)
Parameters Type Name Description System.String path Returns Type Description Task<System.Int64> View Source SetContentStreamAsync(String, Stream)

Set the content of a file from a stream.

Declaration
Task SetContentStreamAsync(string path, Stream content)
Parameters Type Name Description System.String path

The path to the file.

Stream content

The desired content of the file as a stream.

Returns

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4