.NET Framework Class Library
HttpContext Members

Encapsulates all HTTP-specific information about an individual HTTP request.

The HttpContext type exposes the following members.

Constructors

  NameDescription
Public methodHttpContextOverloaded. Initializes a new instance of the HttpContext class.
Top
Methods

  NameDescription
Public methodAddErrorAdds an exception to the exception collection for the current HTTP request.
Public methodClearErrorClears all errors for the current HTTP request.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberGetAppConfig Obsolete. Returns requested configuration information for the current application.
Public methodGetConfig Obsolete. Returns requested configuration information for the current HTTP request.
Public methodStatic memberGetGlobalResourceObjectOverloaded. Gets an application-level resource.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetLocalResourceObjectOverloaded. Gets a page-level resource.
Public methodGetSectionGets a specified configuration section for the current application's default configuration.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemapHandlerEnables you to specify a handler for the request.
Public methodRewritePathOverloaded. Redirects a request for a resource to a different path than the one that is indicated by the requested URL. RewritePath is used in cookieless session state to strip session IDs from URLs.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAllErrorsGets an array of errors accumulated while processing an HTTP request.
Public propertyApplicationGets the HttpApplicationState object for the current HTTP request.
Public propertyApplicationInstanceGets or sets the HttpApplication object for the current HTTP request.
Public propertyCacheGets the Cache object for the current application domain.
Public propertyStatic memberCurrentGets or sets the HttpContext object for the current HTTP request.
Public propertyCurrentHandlerGets the IHttpHandler object that represents the currently executing handler.
Public propertyCurrentNotificationGets a RequestNotification value that indicates the current HttpApplication event that is processing.
Public propertyErrorGets the first error (if any) accumulated during HTTP request processing.
Public propertyHandlerGets or sets the IHttpHandler object responsible for processing the HTTP request.
Public propertyIsCustomErrorEnabledGets a value indicating whether custom errors are enabled for the current HTTP request.
Public propertyIsDebuggingEnabledGets a value indicating whether the current HTTP request is in debug mode.
Public propertyIsPostNotificationGets a value that is the current processing point in the ASP.NET pipeline just after an HttpApplication event has finished processing.
Public propertyItemsGets a key/value collection that can be used to organize and share data between an IHttpModule interface and an IHttpHandler interface during an HTTP request.
Public propertyPreviousHandlerGets the IHttpHandler object for the parent handler.
Public propertyProfileGets the ProfileBase object for the current user profile.
Public propertyRequestGets the HttpRequest object for the current HTTP request.
Public propertyResponseGets the HttpResponse object for the current HTTP response.
Public propertyServerGets the HttpServerUtility object that provides methods used in processing Web requests.
Public propertySessionGets the HttpSessionState object for the current HTTP request.
Public propertySkipAuthorizationGets or sets a value that specifies whether the UrlAuthorizationModule object should skip the authorization check for the current request.
Public propertyTimestampGets the initial timestamp of the current HTTP request.
Public propertyTraceGets the TraceContext object for the current HTTP response.
Public propertyUserGets or sets security information for the current HTTP request.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIServiceProvider..::.GetServiceInfrastructure. Returns an object for the current service type.
Top
See Also

Reference

Tags :


Page view tracker