Interface IRenditionItem
Version: 3.2
Is part of an IRendition.
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsBase
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IRenditionItemRemarks
Depending on the file type, there can be one or more rendition items. For example a PDF will have an item per page.
Properties
Href
Gets link to the rendition file.
Declaration
RequestResponse
Uri Href { get; }Property Value
| Type | Description |
|---|---|
| Uri |
Methods
DownloadAsync(string, bool)
Downloads the rendition item to a location on disk.
Declaration
RequestResponse
Task DownloadAsync(string filePath, bool overwrite = false)Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |
The location to download the file to. |
| bool | overwrite |
If the file is allowed to be overwritten. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
GetStreamAsync()
Gets a containing the contents of the rendition item.
Declaration
RequestResponse
Task<Stream> GetStreamAsync()Returns
| Type | Description |
|---|---|
| Task<>Stream |
A containing the contents of the rendition item. |