System.Web.HttpContext Members

The members of System.Web.HttpContext are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.HttpContext class that uses the specified worker-request object.

Initializes a new instance of the System.Web.HttpContext class by using the specified request and response objects.

Public Properties

[read-only]
AllErrorsException[].

Gets an array of errors accumulated while processing an HTTP request.

[read-only]
ApplicationHttpApplicationState.

Gets the System.Web.HttpApplicationState object for the current HTTP request.

ApplicationInstanceHttpApplication.

Gets or sets the System.Web.HttpApplication object for the current HTTP request.

[read-only]
CacheSystem.Web.Caching.Cache.

Gets the System.Web.Caching.Cache object for the current application domain.

static
CurrentHttpContext.

Gets or sets the System.Web.HttpContext object for the current HTTP request.

[read-only]
CurrentHandlerIHttpHandler.

Gets the System.Web.IHttpHandler object that represents the currently executing handler.

[read-only]
CurrentNotificationRequestNotification.

Gets a System.Web.RequestNotification value that indicates the current System.Web.HttpApplication event that is processing.

[read-only]
ErrorException.

Gets the first error (if any) accumulated during HTTP request processing.

HandlerIHttpHandler.

Gets or sets the System.Web.IHttpHandler object responsible for processing the HTTP request.

[read-only]
IsCustomErrorEnabledbool.

Gets a value indicating whether custom errors are enabled for the current HTTP request.

[read-only]
IsDebuggingEnabledbool.

Gets a value indicating whether the current HTTP request is in debug mode.

[read-only]
IsPostNotificationbool.

Gets a value that is the current processing point in the ASP.NET pipeline just after an System.Web.HttpApplication event has finished processing.

[read-only]
ItemsIDictionary.

Gets a key/value collection that can be used to organize and share data between an System.Web.IHttpModule interface and an System.Web.IHttpHandler interface during an HTTP request.

[read-only]
PreviousHandlerIHttpHandler.

Gets the System.Web.IHttpHandler object for the parent handler.

[read-only]
ProfileSystem.Web.Profile.ProfileBase.

Gets the System.Web.Profile.ProfileBase object for the current user profile.

[read-only]
RequestHttpRequest.

Gets the System.Web.HttpRequest object for the current HTTP request.

[read-only]
ResponseHttpResponse.

Gets the System.Web.HttpResponse object for the current HTTP response.

[read-only]
ServerHttpServerUtility.

Gets the System.Web.HttpServerUtility object that provides methods used in processing Web requests.

[read-only]
SessionSystem.Web.SessionState.HttpSessionState.

Gets the System.Web.SessionState.HttpSessionState object for the current HTTP request.

SkipAuthorizationbool.

Gets or sets a value that specifies whether the System.Web.Security.UrlAuthorizationModule object should skip the authorization check for the current request.

[read-only]
TimestampDateTime.

Gets the initial timestamp of the current HTTP request.

[read-only]
TraceTraceContext.

Gets the System.Web.TraceContext object for the current HTTP response.

UserSystem.Security.Principal.IPrincipal.

Gets or sets security information for the current HTTP request.

Public Methods

AddError(Exception)

Adds an exception to the exception collection for the current HTTP request.

ClearError()

Clears all errors for the current HTTP request.

static
GetAppConfig(string) : object

Returns requested configuration information for the current application.

GetConfig(string) : object

Returns requested configuration information for the current HTTP request.

static
GetGlobalResourceObject(string, string) : object

Gets an application-level resource object based on the specified System.Web.Compilation.ResourceExpressionFields.ClassKey and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties.

static
GetGlobalResourceObject(string, string, System.Globalization.CultureInfo) : object

Gets an application-level resource object based on the specified System.Web.Compilation.ResourceExpressionFields.ClassKey and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties, and on the System.Globalization.CultureInfo object.

static
GetLocalResourceObject(string, string) : object

Gets a page-level resource object based on the specified System.Web.Compilation.ExpressionBuilderContext.VirtualPath and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties.

static
GetLocalResourceObject(string, string, System.Globalization.CultureInfo) : object

Gets a page-level resource object based on the specified System.Web.Compilation.ExpressionBuilderContext.VirtualPath and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties, and on the System.Globalization.CultureInfo object.

GetSection(string) : object

Gets a specified configuration section for the current application's default configuration.

RewritePath(string)

Rewrites the URL using the given path.

RewritePath(string, bool)

Rewrites the URL using the given path and a Boolean value that specifies whether the virtual path for server resources is modified.

RewritePath(string, string, string)

Rewrites the URL by using the given path, path information, and query string information.

RewritePath(string, string, string, bool)

Rewrites the URL using the given virtual path, path information, query string information, and a Boolean value that specifies whether the client file path is set to the rewrite path.

Explicitly Implemented Interface Members

IServiceProvider.GetService

Returns an object for the current service type.