Search Results for

    Show / Hide Table of Contents
    View Source

    Interface INodeCountService

    Provides functionality to retrieve counts of nodes in the Umbraco content tree.

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

    Methods

    View Source

    GetMediaCount()

    Gets the total count of media items.

    Declaration
    int GetMediaCount()
    Returns
    Type Description
    int

    The total count of media items in the system.

    View Source

    GetNodeCount(Guid)

    Gets the count of nodes of a specific object type.

    Declaration
    int GetNodeCount(Guid nodeType)
    Parameters
    Type Name Description
    Guid nodeType

    The GUID representing the Umbraco object type.

    Returns
    Type Description
    int

    The total count of nodes of the specified type.

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