Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeChange<TItem>

    Represents a change to a tree item.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services.Changes
    Assembly: Umbraco.Core.dll
    Syntax
    public class TreeChange<TItem>
    Type Parameters
    Name Description
    TItem

    The type of the item that changed.

    Constructors

    View Source

    TreeChange(TItem, TreeChangeTypes)

    Initializes a new instance of the TreeChange<TItem> class.

    Declaration
    public TreeChange(TItem changedItem, TreeChangeTypes changeTypes)
    Parameters
    Type Name Description
    TItem changedItem

    The item that changed.

    TreeChangeTypes changeTypes

    The types of changes that occurred.

    View Source

    TreeChange(TItem, TreeChangeTypes, IEnumerable<string>?, IEnumerable<string>?)

    Initializes a new instance of the TreeChange<TItem> class with culture information.

    Declaration
    public TreeChange(TItem changedItem, TreeChangeTypes changeTypes, IEnumerable<string>? publishedCultures, IEnumerable<string>? unpublishedCultures)
    Parameters
    Type Name Description
    TItem changedItem

    The item that changed.

    TreeChangeTypes changeTypes

    The types of changes that occurred.

    IEnumerable<string> publishedCultures

    The cultures that were published.

    IEnumerable<string> unpublishedCultures

    The cultures that were unpublished.

    Properties

    View Source

    ChangeTypes

    Gets the types of changes that occurred.

    Declaration
    public TreeChangeTypes ChangeTypes { get; }
    Property Value
    Type Description
    TreeChangeTypes
    View Source

    Item

    Gets the item that changed.

    Declaration
    public TItem Item { get; }
    Property Value
    Type Description
    TItem
    View Source

    PublishedCultures

    Gets the cultures that were published, if any.

    Declaration
    public IEnumerable<string>? PublishedCultures { get; }
    Property Value
    Type Description
    IEnumerable<string>
    View Source

    UnpublishedCultures

    Gets the cultures that were unpublished, if any.

    Declaration
    public IEnumerable<string>? UnpublishedCultures { get; }
    Property Value
    Type Description
    IEnumerable<string>

    Methods

    View Source

    ToEventArgs()

    Converts this change to event arguments.

    Declaration
    public TreeChange<TItem>.EventArgs ToEventArgs()
    Returns
    Type Description
    TreeChange<TItem>.EventArgs

    Event arguments containing this change.

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