Interface ICmsPlatform
General platform information
🪒 In Dynamic Razor it's found on CmsContext.Platform
🪒 In Typed Razor it's found on MyContext.Platform
Namespace: ToSic.Sxc.Context
Assembly: ToSic.Sxc.dll
Syntax
[PublicApi]
public interface ICmsPlatform
Properties
| Improve this Doc View SourceName
A nice name ID, like "Dnn" or "Oqtane"
🪒 Use in Dynamic Razor: CmsContext.Platform.Name
🪒 Use in Typed Razor: MyContext.Platform.Name
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
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
Declaration
PlatformType Type { get; }
Property Value
Type | Description |
---|---|
PlatformType |
Version
The platform version
🪒 Use in Dynamic Razor: CmsContext.Platform.Version
🪒 Use in Typed Razor: MyContext.Platform.Version
Declaration
Version Version { get; }
Property Value
Type | Description |
---|---|
Version |
Remarks
Added in v13