SpaceService.GetByKey Method

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

GetByKey(string, bool, bool)

Gets a Space object from the repository.

public static Space GetByKey(string key, bool sudo = false, bool trashed = false)

Parameters

key
string

Unique key of Space to get.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return space even if trashed, otherwise false.

Returns

Space

Returns an instance of the Space class.