Table of Contents

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 string

Slug to validate.

cancellationToken CancellationToken

Cancellation 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 string

Tree path to validate.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>