RequestContext MembersKentico 8.0 API Reference
The RequestContext type exposes the following members.
Constructors

  NameDescription
Public methodRequestContext
Back to Top
Methods

  NameDescription
Public methodStatic memberClearCachedUrlValues
Clears the cached values related to URL of the request
Public methodCloneForNewThread
Clones the object for new thread
(Inherited from AbstractContext TContext .)
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 AbstractHierarchicalObject ObjectType .)
Public methodContainsColumn
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainer ParentObjectType .)
Public methodStatic memberEnsureSourceItems
Ensures the context source items to be always distributed to thread in async mode
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected methodGetPropertyType
Gets the type of the given property
(Inherited from AbstractHierarchicalObject ObjectType .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetValue
Gets the object value.
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Public methodHasSetter
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodRegisterColumn(String, Func ParentObjectType, Object )
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected methodRegisterColumn(String, Func ParentObjectType, Object , Func ParentObjectType, Object, Object )
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected methodRegisterColumns
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected methodRegisterProperties
Registers the properties of this object
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected methodRegisterProperty(String, Func ObjectType, Object )
Registers the given property to the object
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected methodRegisterProperty(String, Object, Func ObjectType, Object, Object )
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObject ObjectType .)
Public methodSetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObject ObjectType .)
Public methodSetValue
Sets the object value.
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTryGetProperty(String, Object )
Gets the context property.
(Inherited from AbstractHierarchicalObject ObjectType .)
Public methodTryGetProperty(String, Object , Boolean)
Returns value of property.
(Inherited from AbstractHierarchicalObject ObjectType .)
Public methodTryGetValue
Returns value of column.
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to 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 AbstractDataContainer ParentObjectType .)
Public propertyStatic memberCurrentDomain
Returns current URL domain, without trailing slashes.
Public propertyStatic memberCurrentExcludedStatus
Returns current excluded status of the request path
Public propertyStatic memberCurrentPort
Returns the current request URL port.
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 memberCurrentUrlExtension
Returns extension (part after last dot) contained in current URL. Extension starting with . (.ext) or empty extension if there is no extension is returned.
Public propertyStatic memberCurrentURLLangPrefix
Gets or sets the value that contains current language prefix for current URL.
Public propertyStatic memberCurrentURLPathPrefix
Gets or sets the value that contains current path prefix for current 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 RequestContainer TParent .)
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 AbstractHierarchicalObject ObjectType .)
Public propertyStatic memberLogCurrentError
If true (default), the current application error should be logged
Public propertyStatic memberLogPageHit
Indicates if page hit should be logged.
Public propertyProperties
Properties available through the context.
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected propertyPropertyList
Used property list
(Inherited from AbstractHierarchicalObject ObjectType .)
Public propertyStatic memberRawURL
Current request RawUrl.
Protected propertyRegisteredColumns
Registered Columns
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected propertyRegisteredColumnsObject
Registered Columns object
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected propertyRegisteredProperties
Registered properties
(Inherited from AbstractHierarchicalObject ObjectType .)
Protected propertyRegisteredPropertiesObject
Registered properties object
(Inherited from AbstractHierarchicalObject ObjectType .)
Public propertyStatic memberServerHostAddress
Gets or sets server host address.
Public propertyStatic memberURL
Gets information about URL of current request.
Public propertyStatic memberURLReferrer
Returns URL referrer or empty string if HttPContext is not initialized.
Public propertyStatic memberUseGZip
If true, the filter uses GZip compression on output.
Protected propertyUseLocalColumns
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainer ParentObjectType .)
Protected propertyUseLocalProperties
If true, the object uses local properties
(Inherited from AbstractHierarchicalObject ObjectType .)
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).
Public propertyStatic memberUserUniqueIdentifier
Gets the unique identifier for the user - Session ID. If Session ID is missing, UserHostAddress is used.
Back to Top
See Also