Interface IContentTypeSearchService
Provides search services for content types (document types).
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IContentTypeSearchService
Methods
View SourceSearchAsync(string, bool?, CancellationToken, int, int)
Searches for content types matching the specified criteria.
Declaration
Task<PagedModel<IContentType>> SearchAsync(string query, bool? isElement, CancellationToken cancellationToken, int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| string | query | The search query string to filter results by name or alias. |
| bool? | isElement | Filter by element type status. |
| CancellationToken | cancellationToken | A token to observe for cancellation requests. |
| int | skip | The number of items to skip for pagination. |
| int | take | The number of items to take for pagination. |
Returns
| Type | Description |
|---|---|
| Task<PagedModel<IContentType>> | A paged model containing the matching content types. |