Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    SearchAsync(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. true returns only element types, false returns only non-element types, null returns all types.

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX