Class TreeChangeExtensions
Extension methods for tree changes.
Inheritance
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class TreeChangeExtensions
Methods
View SourceHasType(TreeChangeTypes, TreeChangeTypes)
Determines whether the change includes the specified type.
Declaration
public static bool HasType(this TreeChangeTypes change, TreeChangeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeChangeTypes | change | The change to check. |
| TreeChangeTypes | type | The type to look for. |
Returns
| Type | Description |
|---|---|
| bool |
|
HasTypesAll(TreeChangeTypes, TreeChangeTypes)
Determines whether the change includes all of the specified types.
Declaration
public static bool HasTypesAll(this TreeChangeTypes change, TreeChangeTypes types)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeChangeTypes | change | The change to check. |
| TreeChangeTypes | types | The types to look for. |
Returns
| Type | Description |
|---|---|
| bool |
|
HasTypesAny(TreeChangeTypes, TreeChangeTypes)
Determines whether the change includes any of the specified types.
Declaration
public static bool HasTypesAny(this TreeChangeTypes change, TreeChangeTypes types)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeChangeTypes | change | The change to check. |
| TreeChangeTypes | types | The types to look for. |
Returns
| Type | Description |
|---|---|
| bool |
|
HasTypesNone(TreeChangeTypes, TreeChangeTypes)
Determines whether the change includes none of the specified types.
Declaration
public static bool HasTypesNone(this TreeChangeTypes change, TreeChangeTypes types)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeChangeTypes | change | The change to check. |
| TreeChangeTypes | types | The types to look for. |
Returns
| Type | Description |
|---|---|
| bool |
|
ToEventArgs<TItem>(IEnumerable<TreeChange<TItem>>)
Converts a collection of tree changes to event arguments.
Declaration
public static TreeChange<TItem>.EventArgs ToEventArgs<TItem>(this IEnumerable<TreeChange<TItem>> changes)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TreeChange<TItem>> | changes | The changes to convert. |
Returns
| Type | Description |
|---|---|
| TreeChange<TItem>.EventArgs | Event arguments containing the changes. |
Type Parameters
| Name | Description |
|---|---|
| TItem | The type of the item that changed. |