Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPublishedMediaCache

    Namespace: Umbraco.Cms.Core.PublishedCache
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPublishedMediaCache : IPublishedCache

    Methods

    View Source

    GetByIdAsync(Guid)

    Gets a content identified by its unique identifier.

    Declaration
    Task<IPublishedContent> GetByIdAsync(Guid key)
    Parameters
    Type Name Description
    Guid key

    The content unique identifier.

    Returns
    Type Description
    Task<IPublishedContent>

    The content, or null.

    Remarks

    Considers published or unpublished content depending on defaults.

    View Source

    GetByIdAsync(Int32)

    Gets a content identified by its unique identifier.

    Declaration
    Task<IPublishedContent> GetByIdAsync(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The content unique identifier.

    Returns
    Type Description
    Task<IPublishedContent>

    The content, or null.

    Remarks

    Considers published or unpublished content depending on defaults.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetByIdAsync(Guid)
      • GetByIdAsync(Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX