AppService.GetApps Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Get |
Get apps in the specified space. |
Get |
Get apps in specified space of specified type |
GetApps(int, bool, bool)
Get apps in the specified space.
public static IEnumerable<App> GetApps(int spaceId, bool sudo = false, bool trashed = false)
Parameters
- space
Id - int
Id of the space for which to get apps.
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return trashed apps, otherwise false
.
Returns
System.Collections.Generic.IEnumerable
Returns a list of App objects.
GetApps(int, bool, bool)
Get apps in specified space of specified type
public static IEnumerable<T> GetApps<T>(int spaceId, bool sudo = false, bool trashed = false)
where T : App
Parameters
- space
Id - int
Id of the space for which to get apps.
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return trashed apps, otherwise false
.
Returns
System.Collections.Generic.IEnumerable<>
Returns a list of App objects.