Interface IApiMedia
Represents media in the Delivery API.
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface IApiMedia
Properties
View SourceBytes
Gets the size of the media in bytes.
Declaration
int? Bytes { get; }
Property Value
| Type | Description |
|---|---|
| int? |
Extension
Gets the file extension of the media.
Declaration
string? Extension { get; }
Property Value
| Type | Description |
|---|---|
| string |
Height
Gets the height of the media in pixels, if applicable.
Declaration
int? Height { get; }
Property Value
| Type | Description |
|---|---|
| int? |
Id
Gets the unique identifier of the media.
Declaration
Guid Id { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
MediaType
Gets the media type alias.
Declaration
string MediaType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the name of the media.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets the property values of the media.
Declaration
IDictionary<string, object?> Properties { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Url
Gets the URL of the media.
Declaration
string Url { get; }
Property Value
| Type | Description |
|---|---|
| string |
Width
Gets the width of the media in pixels, if applicable.
Declaration
int? Width { get; }
Property Value
| Type | Description |
|---|---|
| int? |