Sitecore 5.1.1 API

Context Class

Represents the current state for this request.

For a list of all members of this type, see Context Members.

System.Object
   Sitecore.Context

[Visual Basic]
Public Class Context
[C#]
public class Context

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Context object holds information about the current state such as current database, current language, current domain etc.

Many of these properties are resolved in the HttpRequest pipeline which determines the current site. The site usually specifies the current database, language and domain.

The current item is also resolved in the HttpRequest pipeline.

Requirements

Namespace: Sitecore

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

Context Members | Sitecore Namespace