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 SourceTreeChange(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. |
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 SourceChangeTypes
Gets the types of changes that occurred.
Declaration
public TreeChangeTypes ChangeTypes { get; }
Property Value
| Type | Description |
|---|---|
| TreeChangeTypes |
Item
Gets the item that changed.
Declaration
public TItem Item { get; }
Property Value
| Type | Description |
|---|---|
| TItem |
PublishedCultures
Gets the cultures that were published, if any.
Declaration
public IEnumerable<string>? PublishedCultures { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
UnpublishedCultures
Gets the cultures that were unpublished, if any.
Declaration
public IEnumerable<string>? UnpublishedCultures { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Methods
View SourceToEventArgs()
Converts this change to event arguments.
Declaration
public TreeChange<TItem>.EventArgs ToEventArgs()
Returns
| Type | Description |
|---|---|
| TreeChange<TItem>.EventArgs | Event arguments containing this change. |