ContentService.Move Method

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

Overloads

Move(T, App, bool) Moves an Content item (and its descendants) to the root of the specified app.
Move(T, Content, bool) Moves an Content item and its descendants to the specified parent item.

Move(T, App, bool)

Moves an Content item (and its descendants) to the root of the specified app.

public static T Move<T>(T content, App app, bool sudo = false)
    where T : Content

Parameters

content

The content to move.

app
App

The destination app.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Move(T, Content, bool)

Moves an Content item and its descendants to the specified parent item.

public static T Move<T>(T content, Content parent, bool sudo = false)
    where T : Content

Parameters

content

The content to move.

parent
Content

The new parent item.

sudo
bool

true to perform action as super user, otherwise false.

Returns

The moved item.