AppService.GetByName Method

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

Overloads

GetByName(int, string, bool, bool) Get named app from specified space.
GetByName(int, string, bool, bool) Get named app from specified space.

GetByName(int, string, bool, bool)

Get named app from specified space.

public static App GetByName(int spaceId, string name, bool sudo = false, bool trashed = false)

Parameters

spaceId
int

Id of the space for which to get app.

name
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

App

GetByName(int, string, bool, bool)

Get named app from specified space.

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

Parameters

spaceId
int

Id of the space for which to get app.

name
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