Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IFlagProvider

    Defines operation for the provision of presentation flags for item, tree and collection nodes.

    Namespace: Umbraco.Cms.Api.Management.Services.Flags
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public interface IFlagProvider

    Methods

    View Source

    CanProvideFlags<TItem>()

    Gets a value indicating whether this provider can provide flags for the specified item type.

    Declaration
    bool CanProvideFlags<TItem>() where TItem : IHasFlags
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    TItem

    Type of view model supporting flags.

    View Source

    PopulateFlagsAsync<TItem>(IEnumerable<TItem>)

    Populates the provided item view models with flags.

    Declaration
    Task PopulateFlagsAsync<TItem>(IEnumerable<TItem> items) where TItem : IHasFlags
    Parameters
    Type Name Description
    IEnumerable<TItem> items
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    TItem

    Type of item view model supporting flags.

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