Interface INodeCountRepository
Represents a repository for counting nodes in the system.
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface INodeCountRepository
Methods
View SourceGetMediaCount()
Gets the total count of media items.
Declaration
int GetMediaCount()
Returns
| Type | Description |
|---|---|
| int | The count of media items. |
GetNodeCount(Guid)
Gets the count of nodes for a specific node type.
Declaration
int GetNodeCount(Guid nodeType)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | nodeType | The unique identifier of the node type. |
Returns
| Type | Description |
|---|---|
| int | The count of nodes of the specified type. |