Table of Contents

Interface ICmsPlatform

Namespace
ToSic.Sxc.Context
Assembly
ToSic.Sxc.dll

General platform information

🪒 In Dynamic Razor it's found on CmsContext.Platform
🪒 In Typed Razor it's found on MyContext.Platform

[PublicApi]
public interface ICmsPlatform

Properties

Name

A nice name ID, like "Dnn" or "Oqtane"

🪒 Use in Dynamic Razor: CmsContext.Platform.Name
🪒 Use in Typed Razor: MyContext.Platform.Name

string Name { get; }

Property Value

string

Remarks

Please be aware that platform names may change with time - like Dnn was once DotNetNuke So to safely ensure you are detecting the right platform you should focus on the Type attribute.

Type

The platform type Id from the enumerator - so stored as an int.

🪒 Use in Dynamic Razor: CmsContext.Platform.Type
🪒 Use in Typed Razor: MyContext.Platform.Type

PlatformType Type { get; }

Property Value

PlatformType

Version

The platform version

🪒 Use in Dynamic Razor: CmsContext.Platform.Version
🪒 Use in Typed Razor: MyContext.Platform.Version

Version Version { get; }

Property Value

Version

Remarks

Added in v13