ContentService.Lock Method

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

Overloads

Lock(int, bool) Locks a Content item for editing. Only the user that has the lock may update the Content item.
Lock(int, bool) Locks a Content item for editing. Only the user that has the lock may update the Content item.

Lock(int, bool)

Locks a Content item for editing. Only the user that has the lock may update the Content item.

public static Content Lock(int id, bool sudo = false)

Parameters

id
int

Id of the Content item to lock.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Content

The locked content item.

Lock(int, bool)

Locks a Content item for editing. Only the user that has the lock may update the Content item.

public static T Lock<T>(int id, bool sudo = false)
    where T : Content, ILockable

Parameters

id
int

Id of the content item to lock.

sudo
bool

true to perform action as super user, otherwise false.

Returns

The locked content item.