This documentation is archived and is not being maintained.
HttpContext Members
Visual Studio 2008
Encapsulates all HTTP-specific information about an individual HTTP request.
The HttpContext type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddError | Adds an exception to the exception collection for the current HTTP request. |
|
ClearError | Clears all errors for the current HTTP request. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetAppConfig | Obsolete. Returns requested configuration information for the current application. |
|
GetConfig | Obsolete. Returns requested configuration information for the current HTTP request. |
|
GetGlobalResourceObject | Overloaded. Gets an application-level resource. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLocalResourceObject | Overloaded. Gets a page-level resource. |
|
GetSection | Gets a specified configuration section for the current application's default configuration. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
RemapHandler | Enables you to specify a handler for the request. |
|
RewritePath | Overloaded. 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. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AllErrors | Gets an array of errors accumulated while processing an HTTP request. |
|
Application | Gets the HttpApplicationState object for the current HTTP request. |
|
ApplicationInstance | Gets or sets the HttpApplication object for the current HTTP request. |
|
Cache | Gets the Cache object for the current application domain. |
|
Current | Gets or sets the HttpContext object for the current HTTP request. |
|
CurrentHandler | Gets the IHttpHandler object that represents the currently executing handler. |
|
CurrentNotification | Gets a RequestNotification value that indicates the current HttpApplication event that is processing. |
|
Error | Gets the first error (if any) accumulated during HTTP request processing. |
|
Handler | Gets or sets the IHttpHandler object responsible for processing the HTTP request. |
|
IsCustomErrorEnabled | Gets a value indicating whether custom errors are enabled for the current HTTP request. |
|
IsDebuggingEnabled | Gets a value indicating whether the current HTTP request is in debug mode. |
|
IsPostNotification | Gets a value that is the current processing point in the ASP.NET pipeline just after an HttpApplication event has finished processing. |
|
Items | Gets 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. |
|
PreviousHandler | Gets the IHttpHandler object for the parent handler. |
|
Profile | Gets the ProfileBase object for the current user profile. |
|
Request | Gets the HttpRequest object for the current HTTP request. |
|
Response | Gets the HttpResponse object for the current HTTP response. |
|
Server | Gets the HttpServerUtility object that provides methods used in processing Web requests. |
|
Session | Gets the HttpSessionState object for the current HTTP request. |
|
SkipAuthorization | Gets or sets a value that specifies whether the UrlAuthorizationModule object should skip the authorization check for the current request. |
|
Timestamp | Gets the initial timestamp of the current HTTP request. |
|
Trace | Gets the TraceContext object for the current HTTP response. |
|
User | Gets or sets security information for the current HTTP request. |
| Name | Description | |
|---|---|---|
|
IServiceProvider::GetService | Infrastructure. Returns an object for the current service type. |
Show: