Table of Contents

Class SystemContext

Namespace
CMS.Base
Assembly
CMS.Base.dll

Environment variables

public class SystemContext : AbstractContext<SystemContext>, IDataContainer, ISimpleDataContainer, IContext, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, ICloneThreadItem
Inheritance
object
SystemContext
Implements
Inherited Members
Extension Methods

Fields

SYSTEM_CULTURE_NAME

Name of the default system culture.

public const string SYSTEM_CULTURE_NAME = "en-us"

Field Value

string

Properties

DevelopmentMode

Development mode type.

[RegisterColumn(Hidden = true)]
public static bool DevelopmentMode { get; set; }

Property Value

bool

IsWebSite

Indicates whether the application runs on a web server, or as part of some other tool (e.g. Console application).

[RegisterColumn]
public static bool IsWebSite { get; set; }

Property Value

bool

MachineName

Machine name.

[RegisterColumn]
public static string MachineName { get; set; }

Property Value

string

ServerName

Server name.

[RegisterColumn]
public static string ServerName { get; set; }

Property Value

string

SystemCulture

Default culture for the system.

public static CultureInfo SystemCulture { get; }

Property Value

CultureInfo

WebApplicationPhysicalPath

Web application physical path. Trimmed System.IO.Path.DirectorySeparatorChar at the end. E.g. c:\inetpub\wwwroot\MySite

[RegisterColumn]
public static string WebApplicationPhysicalPath { get; set; }

Property Value

string