Table of Contents

Interface IApp

Namespace
ToSic.Sxc.Apps
Assembly
ToSic.Sxc.dll

An app-object as is available in a razor template or WebApi when in classic/dynamic mode.

[PublicApi]
public interface IApp : IApp, IAppIdentity, IZoneIdentity, IAppIdentityLight, IHasMetadata
Inherited Members

Properties

Configuration

Configuration object with information about the App. This contains things like app version, path etc.

IAppConfiguration Configuration { get; }

Property Value

IAppConfiguration

Path

The path to the current app, for linking JS/CSS files and images in the app folder.

string Path { get; }

Property Value

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.

string PathShared { get; }

Property Value

string

Path usually starting with /portals/_default/...

Remarks

Added v13.01

PhysicalPath

The path on the server hard disk for the current app.

string PhysicalPath { get; }

Property Value

string

Path usually starting with c:...

PhysicalPathShared

The path on the server hard disk for the current apps shared/global folder.

string PhysicalPathShared { get; }

Property Value

string

Path usually starting with c:...

Remarks

Added v13.01

Query

All queries of the app, to access like App.Query["name"]

IDictionary<string, IQuery> Query { get; }

Property Value

IDictionary<string, IQuery>

A dictionary with all queries. Internally the dictionary will not be built unless accessed.

Resources

All the app resources (usually used for multi-language labels etc.)

dynamic Resources { get; }

Property Value

dynamic

An IDynamicEntity object

Settings

All the app settings which are custom for each app.

dynamic Settings { get; }

Property Value

dynamic

An IDynamicEntity object

Thumbnail

The thumbnail path for the current app.

string Thumbnail { get; }

Property Value

string

path + app-icon.png if there is an icon there.