ContentService.Trash Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Trash(Int32, Boolean) Sends a content item (and it's descendants) to the trash.
Trash(Int32) Sends a content item (and it's descendants) to the trash.

Trash(Int32, Boolean)

Sends a content item (and it's descendants) to the trash.

public static Content Trash(int id, bool auth = true)

Parameters

id
System.Int32
auth
System.Boolean

Returns

Content

The trashed content item.

Trash(Int32)

Sends a content item (and it's descendants) to the trash.

public static T Trash(int id)
    where T : Content, ITrashable

Parameters

id
System.Int32

Returns

Content

The trashed content item.