Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPublishedUrlInfoProvider

    Provides URL information for published content items.

    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPublishedUrlInfoProvider

    Methods

    View Source

    GetAllAsync(IContent)

    Gets all published urls for a content item.

    Declaration
    Task<ISet<UrlInfo>> GetAllAsync(IContent content)
    Parameters
    Type Name Description
    IContent content

    The content to get urls for.

    Returns
    Type Description
    Task<ISet<UrlInfo>>

    Set of all published url infos.

    View Source

    GetAllAsync(IContent, string?)

    Gets the published urls for a content item, optionally restricted to a single culture.

    Declaration
    Task<ISet<UrlInfo>> GetAllAsync(IContent content, string? culture)
    Parameters
    Type Name Description
    IContent content

    The content to get urls for.

    string culture

    The culture to restrict variant content urls to, or null to return urls for all cultures. Ignored for invariant content, which always returns all of its domain urls.

    Returns
    Type Description
    Task<ISet<UrlInfo>>

    Set of published url infos.

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