DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IListService

    Defines the interface for a service that provides operations for lists.

    Namespace: DataWeb.Data
    Assembly: DataWeb.Core.dll
    Syntax
    public interface IListService

    Methods

    GetListAsync(string, string, CancellationToken)

    Gets a single list with the specified name and culture.

    Declaration
    Task<List> GetListAsync(string name, string culture = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string name

    The name of the list to retrieve.

    string culture

    The culture for which to retrieve the list.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<List>

    A List object representing the list.

    GetListsAsync(string, CancellationToken)

    Gets a collection of all lists available for the specified culture.

    Declaration
    Task<IEnumerable<List>> GetListsAsync(string culture = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string culture

    The culture for which to retrieve the lists.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IEnumerable<List>>

    An IEnumerable<T> of List objects representing the lists.

    In this article
    Back to top Generated by DocFX