Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IApiMedia

    Represents media in the Delivery API.

    Namespace: Umbraco.Cms.Core.Models.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IApiMedia

    Properties

    View Source

    Bytes

    Gets the size of the media in bytes.

    Declaration
    int? Bytes { get; }
    Property Value
    Type Description
    int?
    View Source

    Extension

    Gets the file extension of the media.

    Declaration
    string? Extension { get; }
    Property Value
    Type Description
    string
    View Source

    Height

    Gets the height of the media in pixels, if applicable.

    Declaration
    int? Height { get; }
    Property Value
    Type Description
    int?
    View Source

    Id

    Gets the unique identifier of the media.

    Declaration
    Guid Id { get; }
    Property Value
    Type Description
    Guid
    View Source

    MediaType

    Gets the media type alias.

    Declaration
    string MediaType { get; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets the name of the media.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string
    View Source

    Properties

    Gets the property values of the media.

    Declaration
    IDictionary<string, object?> Properties { get; }
    Property Value
    Type Description
    IDictionary<string, object>
    View Source

    Url

    Gets the URL of the media.

    Declaration
    string Url { get; }
    Property Value
    Type Description
    string
    View Source

    Width

    Gets the width of the media in pixels, if applicable.

    Declaration
    int? Width { get; }
    Property Value
    Type Description
    int?
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX