ContentService.Trash Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Trash(int, bool) | Sends a content item (and it's descendants) to the trash. |
Trash |
Sends a content item (and it's descendants) to the trash. |
Trash(int, bool)
Sends a content item (and it's descendants) to the trash.
public static Content Trash(int id, bool sudo = false)
Parameters
- id
- int
Id of the content item to trash.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Content
The trashed content item.
Trash(int, bool)
Sends a content item (and it's descendants) to the trash.
public static T Trash<T>(int id, bool sudo = false)
where T : Content, ITrashable
Parameters
- id
- int
Id of the content item to trash.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
The trashed content item.