Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishableVariantItemResponseModelBase

    Base class for publishable variant item response models, providing flag support and publish state.

    Inheritance
    object
    VariantItemResponseModelBase
    Namespace: Umbraco.Cms.Api.Management.ViewModels.Content
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public abstract class PublishableVariantItemResponseModelBase : VariantItemResponseModelBase, IHasFlags

    Constructors

    View Source

    PublishableVariantItemResponseModelBase()

    Declaration
    protected PublishableVariantItemResponseModelBase()

    Properties

    View Source

    Flags

    Gets the collection of flag for the entity.

    Declaration
    public IEnumerable<FlagModel> Flags { get; set; }
    Property Value
    Type Description
    IEnumerable<FlagModel>
    View Source

    Id

    Gets the unique identifier for the entity.

    Declaration
    public Guid Id { get; }
    Property Value
    Type Description
    Guid
    View Source

    State

    Gets or sets the publish state of the variant.

    Declaration
    public required PublishableVariantState State { get; set; }
    Property Value
    Type Description
    PublishableVariantState

    Methods

    View Source

    AddFlag(string)

    Adds a flag to the entity with the specified alias.

    Declaration
    public void AddFlag(string alias)
    Parameters
    Type Name Description
    string alias
    View Source

    RemoveFlag(string)

    Removes a flag from the entity with the specified alias.

    Declaration
    public void RemoveFlag(string alias)
    Parameters
    Type Name Description
    string alias
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX