Interface IApp
An app-object as is available in a razor template or WebApi
Inherited Members
Namespace: ToSic.Sxc.Apps
Assembly: ToSic.Sxc.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
public interface IApp : IApp, IAppIdentity, IZoneIdentity, IAppIdentityLight, IHasMetadata
Properties
| Improve this Doc View SourceConfiguration
Configuration object with information about the App. This contains things like app version, path etc.
Declaration
IAppConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
IAppConfiguration |
Path
The path to the current app, for linking JS/CSS files and images in the app folder.
Declaration
string Path { get; }
Property Value
Type | Description |
---|---|
string | Path usually starting with /portals/... |
PathShared
The path to the current apps shared/global folder, for linking JS/CSS files and images in the app folder.
Declaration
string PathShared { get; }
Property Value
Type | Description |
---|---|
string | Path usually starting with /portals/_default/... |
Remarks
Added v13.01
PhysicalPath
The path on the server hard disk for the current app.
Declaration
string PhysicalPath { get; }
Property Value
Type | Description |
---|---|
string | Path usually starting with c:... |
PhysicalPathShared
The path on the server hard disk for the current apps shared/global folder.
Declaration
string PhysicalPathShared { get; }
Property Value
Type | Description |
---|---|
string | Path usually starting with c:... |
Remarks
Added v13.01
Resources
All the app resources (usually used for multi-language labels etc.)
Declaration
dynamic Resources { get; }
Property Value
Type | Description |
---|---|
dynamic | An IDynamicEntity object |
Settings
All the app settings which are custom for each app.
Declaration
dynamic Settings { get; }
Property Value
Type | Description |
---|---|
dynamic | An IDynamicEntity object |
Thumbnail
The thumbnail path for the current app.
Declaration
string Thumbnail { get; }
Property Value
Type | Description |
---|---|
string | path + app-icon.png if there is an icon there. |