Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IElementPublishStatusQueryService

    Verifies the published status of elements.

    Namespace: Umbraco.Cms.Core.Services.Navigation
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IElementPublishStatusQueryService

    Methods

    View Source

    IsPublished(Guid, string)

    Checks if an element is published in a specific culture.

    Declaration
    bool IsPublished(Guid elementKey, string culture)
    Parameters
    Type Name Description
    Guid elementKey

    The element's key.

    string culture

    The culture.

    Returns
    Type Description
    bool

    True if element is published in the specified culture.

    View Source

    IsPublishedInAnyCulture(Guid)

    Checks if an element is published in any culture.

    Declaration
    bool IsPublishedInAnyCulture(Guid elementKey)
    Parameters
    Type Name Description
    Guid elementKey

    The element's key.

    Returns
    Type Description
    bool

    True if element has any published culture.

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