AppService.GetByKey Method

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

Overloads

GetByKey(int, string, bool, bool) Get app with specified key from a space.
GetByKey(int, string, bool, bool) Get app with specified key from a space.

GetByKey(int, string, bool, bool)

Get app with specified key from a space.

public static App GetByKey(int spaceId, string key, bool sudo = false, bool trashed = false)

Parameters

spaceId
int

Id of the space for which to get app.

key
string

Unique key of app to get.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return app even if trashed, otherwise false.

Returns

App

An App object.

GetByKey(int, string, bool, bool)

Get app with specified key from a space.

public static T GetByKey<T>(int spaceId, string key, bool sudo = false, bool trashed = false)
    where T : App

Parameters

spaceId
int

Id of the space for which to get app.

key
string

Name of app to get.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return app even if trashed, otherwise false.

Returns