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 auth = true)

Parameters

id
int

Id of the Content item to lock.

auth
bool

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 auth = true)

    where T : Content, ILockable

Parameters

id
int

Id of the content item to lock.

auth
bool

Returns

The locked content item.