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 SourceGetMediaCount()
Gets the total count of media items.
Declaration
int GetMediaCount()
Returns
| Type | Description |
|---|---|
| int | The total count of media items in the system. |
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. |