Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMediaRepository

    Represents a repository for IMedia entities.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMediaRepository : IContentRepository<int, IMedia>, IReadWriteQueryRepository<int, IMedia>, IReadRepository<int, IMedia>, IWriteRepository<IMedia>, IQueryRepository<IMedia>, IReadRepository<Guid, IMedia>, IRepository

    Methods

    View Source

    GetMediaByPath(string)

    Gets a media item by its file path.

    Declaration
    IMedia? GetMediaByPath(string mediaPath)
    Parameters
    Type Name Description
    string mediaPath

    The file path of the media item.

    Returns
    Type Description
    IMedia

    The media item if found; otherwise, null.

    View Source

    RecycleBinSmells()

    Returns true if there is any media in the recycle bin.

    Declaration
    bool RecycleBinSmells()
    Returns
    Type Description
    bool

    true if the recycle bin contains items; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX