1. Stylelabs.M.Sdk.Models.Base

Class RenditionItemBase

Base class for rendition items.

Inheritance

object

RenditionItemBase

Implements

IRenditionItem

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBase

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class RenditionItemBase : IRenditionItem

Properties

Href

Gets link to the rendition file.

Declaration

public Uri Href { get; protected set; }

Property Value

TypeDescription
Uri

Methods

DownloadAsync(string, bool)

Downloads the rendition item to a location on disk.

Declaration

public Task DownloadAsync(string filePath, bool overwrite = false)

Parameters

TypeNameDescription
stringfilePathThe location to download the file to.
booloverwriteIf the file is allowed to be overwritten.

Returns

TypeDescription
TaskAn awaitable .

GetStreamAsync()

Gets a containing the contents of the rendition item.

Declaration

public abstract Task<Stream> GetStreamAsync()

Returns

TypeDescription
Task<>StreamA containing the contents of the rendition item.

Implements

IRenditionItem

If you have suggestions for improving this article, let us know!