Click or drag to resize
RequestContext Class
Request context properties
Inheritance Hierarchy
SystemObject
  CMS.BaseAbstractSimpleDataContainerRequestContext
    CMS.BaseAbstractDataContainerRequestContext
      CMS.BaseAbstractHierarchicalObjectRequestContext
        CMS.BaseContextContainerRequestContext
          CMS.BaseAbstractContextRequestContext
            CMS.HelpersRequestContext

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public sealed class RequestContext : AbstractContext<RequestContext>

The RequestContext type exposes the following members.

Constructors
  NameDescription
Public methodRequestContext
Top
Properties
  NameDescription
Public propertyStatic memberClientApplication
Dictionary to be used to collect data from server for client application.
Public propertyColumnNames
Available column names.
(Inherited from AbstractDataContainerParentObjectType.)
Public propertyStatic memberCurrentDomain
Returns current URL domain, without trailing slashes.
Public propertyStatic memberCurrentExcludedStatus
Returns current excluded status of the request path
Public propertyStatic memberCurrentQueryString
Returns the current request URL query string.
Public propertyStatic memberCurrentRelativePath
Current page relative path. e.g. "~/Home.aspx" has relative path "/Home.aspx"
Public propertyStatic memberCurrentScheme
Returns the current request URL scheme.
Public propertyStatic memberCurrentStatus
Returns current request URL rewriting status.
Public propertyStatic memberCurrentURL
Returns the current request URL.
Public propertyStatic memberFullDomain
Returns current URL domain with port if exist.
Public propertyIsDefault
Returns true if the context is the default request context
(Inherited from ContextContainerTParent.)
Public propertyStatic memberIsSSL
Indicates whether current request is SSL request.
Public propertyStatic memberIsUserAuthenticated
Returns true, if the user is authenticated
Public propertyItem
Gets the value of particular property
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyKey
Unique container key
(Inherited from ContextContainerTParent.)
Public propertyStatic memberLogCurrentError
If true (default), the current application error should be logged
Public propertyProperties
Properties available through the context.
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyPropertyList
Used property list
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyStatic memberRawURL
Current request RawUrl.
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 memberResponseIsCompressed
Indicates whether the current response contains compressed data.
Public propertyStatic memberURL
Gets information about URL of current request.
Public propertyStatic memberURLReferrer
Returns URL referrer or empty string if HttPContext is not initialized.
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 memberUseNoCacheForRedirect
Indicates whether current redirect should add no-cache directive to the response header
Public propertyStatic memberUserAgent
Returns user agent or empty string if HttPContext is not initialized.
Public propertyStatic memberUserHostAddress
Gets or sets user host address. Returns empty string if HttpContext is not initialized and other value is not set.
Public propertyStatic memberUserName
Gets user name or empty string if HttpContext is not initialized. The user name is in the exact format in which the user is authenticated (may not be safe name).
Top
Methods
  NameDescription
Public methodStatic memberClearCachedUrlValues
Clears the cached values related to URL of the request
Public methodClearCurrent
Clears the current context value
(Inherited from ContextContainerTParent.)
Public methodCloneForNewThread
Clones the object for new thread
(Overrides AbstractContextTContextCloneForNewThread.)
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 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