Click or drag to resize
SystemContext Class
Environment variables
Inheritance Hierarchy
SystemObject
  CMS.BaseAbstractSimpleDataContainerSystemContext
    CMS.BaseAbstractDataContainerSystemContext
      CMS.BaseAbstractHierarchicalObjectSystemContext
        CMS.BaseContextContainerSystemContext
          CMS.BaseAbstractContextSystemContext
            CMS.BaseSystemContext

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax
C#
public class SystemContext : AbstractContext<SystemContext>

The SystemContext type exposes the following members.

Constructors
  NameDescription
Public methodSystemContext
Top
Fields
  NameDescription
Public fieldStatic memberEnglishCulture
English culture.
Public fieldStatic memberIsWebProjectDebug
True if web project is compiled in debug mode.
Top
Properties
  NameDescription
Public propertyStatic memberApplicationPath
Web application path (e.g. /WebProject1)
Public propertyColumnNames
Available column names.
(Inherited from AbstractDataContainerParentObjectType.)
Public propertyStatic memberDevelopmentMode
Development mode type.
Public propertyStatic memberInstanceName
Returns unique name of the instance, i.e. ServerName for multi-instance environments or MachineName with ApplicationPath in other cases.
Public propertyStatic memberIsCMSRunningAsMainApplication
Indicates whether hosting environment is CMS web-based application (is not running as a part of external application).
Public propertyIsDefault
Returns true if the context is the default request context
(Inherited from ContextContainerTParent.)
Public propertyStatic memberIsPrecompiledWebsite
Returns true if the website is precompiled (checks existence of codebehind file of PortalTemplate).
Public propertyStatic memberIsRunningOnAzure
Indicates whether current instance is an Azure Cloud Services deployment (is false for Azure Web Apps).
Public propertyStatic memberIsWebApplicationProject
Returns true if web application is installed (instead of web project).
Public propertyStatic memberIsWebSite
Indicates whether the application runs on a web server, or as part of some other tool (e.g. Console application).
Public propertyItem
Gets the value of particular property
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyKey
Unique container key
(Inherited from ContextContainerTParent.)
Public propertyStatic memberMachineName
Machine name.
Public propertyProperties
Properties available through the context.
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyPropertyList
Used property list
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyRegisteredColumns
Registered Columns
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyRegisteredColumnsObject
Registered Columns object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyRegisteredProperties
Registered properties
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyRegisteredPropertiesObject
Registered properties object
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyStatic memberServerName
Server name.
Protected propertyUseLocalColumns
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyUseLocalProperties
If true, the object uses local properties
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyStatic memberUseWebApplicationConfiguration
Indicates if WebApplicationPhysicalPath property should be used to initialize the configuration manager.
Public propertyStatic memberWebApplicationPhysicalPath
Web application physical path. Trimmed backslash '\' at the end. E.g. c:\inetpub\wwwroot\MySite
Public propertyStatic memberWebApplicationVirtualPath
Returns the application virtual path.
Top
Methods
  NameDescription
Public methodClearCurrent
Clears the current context value
(Inherited from ContextContainerTParent.)
Public methodCloneForNewThread
Clones the object for new thread
(Inherited from AbstractContextTContext.)
Public methodCombineWith
Combines current instance with other properties (modifies current instace!). List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodContainsColumn
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainerParentObjectType.)
Public methodEnsureCurrent (Inherited from ContextContainerTParent.)
Public methodStatic memberGenerateUniqueInstanceName
Gets the automatic server name that is using for current instance
Public methodGetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodGetPropertyType
Gets the type of the given property
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodGetValue
Gets the object value.
(Inherited from AbstractSimpleDataContainerTObject.)
Public methodHasSetter
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodRegisterColumn(String, FuncTObject, Object)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterColumn(String, FuncTObject, Object, FuncTObject, Object, Object)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterColumns
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterProperties
Registers the properties of this object
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodRegisterProperty(String, FuncTObject, Object)
Registers the given property to the object
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodRegisterProperty(String, Object, FuncTObject, Object, Object)
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodSetAsCurrent
Sets the current instance as the current thread item
(Inherited from ContextContainerTParent.)
Public methodSetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodSetValue
Sets the object value.
(Inherited from AbstractSimpleDataContainerTObject.)
Public methodTryGetProperty(String, Object)
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodTryGetProperty(String, Object, Boolean)
Returns value of property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodTryGetValue
Returns value of column.
(Inherited from AbstractSimpleDataContainerTObject.)
Top
See Also