---
title: "Class RenditionItemBase"
slug: "sdk--stylelabs.m.sdk.models.base.renditionitembase"
abstract: ""
---
# Class RenditionItemBase

Base class for rendition items.

## Inheritance

object

RenditionItemBase

## Implements

[IRenditionItem](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.irenditionitem.html)

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBase

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public abstract class RenditionItemBase : IRenditionItem
```

## Properties

### Href

Gets link to the rendition file.

#### Declaration

```csharp
public Uri Href { get; protected set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| Uri |  |

## Methods

### DownloadAsync(string, bool)

Downloads the rendition item to a location on disk.

#### Declaration

```csharp
public 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

```csharp
public abstract Task<Stream> GetStreamAsync()
```

#### Returns

| Type | Description |
| --- | --- |
| Task<>Stream | A containing the contents of the rendition item. |

### Implements

[IRenditionItem](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.irenditionitem.html)
