Interface IContentFolderTreePathValidator
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Provides methods for validating a folder's tree path.
public interface IContentFolderTreePathValidator
- Extension Methods
Methods
IsTreePathSlugValid(string, CancellationToken)
Determines whether a given slug is valid.
Task<bool> IsTreePathSlugValid(string folderTreePathSlug, CancellationToken cancellationToken = default)
Parameters
folderTreePathSlug
stringSlug to validate.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<bool>
IsUnique(string, CancellationToken)
Determines whether the given tree path is unique.
Task<bool> IsUnique(string folderTreePath, CancellationToken cancellationToken = default)
Parameters
folderTreePath
stringTree path to validate.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<bool>