HttpContext Members
.NET Framework 3.0
Encapsulates all HTTP-specific information about an individual HTTP request.
The following tables list the members exposed by the HttpContext type.
| 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. |
(see also
Protected Methods
)
Top
| 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 | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetAppConfig | Returns requested configuration information for the current application. |
| GetConfig | 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) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| RewritePath | Overloaded. Assigns an internal rewrite path and allows for the URL that is requested to differ from the internal path to the resource. RewritePath is used in cookieless session state. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.IServiceProvider.GetService | Returns an object for the current service type. |
Community Additions
ADD
Show: