Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPublishStatusQueryService

    Verifies the published status of documents.

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

    Methods

    View Source

    HasPublishedAncestorPath(Guid)

    Verifies if a document has a published ancestor path (i.e. all ancestors are themselves published in at least one culture).

    Declaration
    bool HasPublishedAncestorPath(Guid documentKey)
    Parameters
    Type Name Description
    Guid documentKey

    The document's key.

    Returns
    Type Description
    System.Boolean

    True if document has a published ancestor path.

    View Source

    IsDocumentPublished(Guid, String)

    Checks if a document is published in a specific culture.

    Declaration
    bool IsDocumentPublished(Guid documentKey, string culture)
    Parameters
    Type Name Description
    Guid documentKey

    The document's key.

    System.String culture

    The culture.

    Returns
    Type Description
    System.Boolean

    True if document is published in the specified culture.

    View Source

    IsDocumentPublishedInAnyCulture(Guid)

    Checks if a document is published in any culture.

    Declaration
    virtual bool IsDocumentPublishedInAnyCulture(Guid documentKey)
    Parameters
    Type Name Description
    Guid documentKey

    The document's key.

    Returns
    Type Description
    System.Boolean

    True if document has any published culture.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX