HttpContext Properties
.NET Framework 4.5
The HttpContext type exposes the following members.
| Name | Description | |
|---|---|---|
|
AllErrors | Gets an array of errors accumulated while processing an HTTP request. |
|
AllowAsyncDuringSyncStages | Gets or sets a value that indicates whether asynchronous operations are allowed during parts of ASP.NET request processing when they are not expected. |
|
Application | Gets the HttpApplicationState object for the current HTTP request. |
|
ApplicationInstance | Gets or sets the HttpApplication object for the current HTTP request. |
|
AsyncPreloadMode | Gets or sets an object that contains flags that pertain to asynchronous preload mode. |
|
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. |
|
IsWebSocketRequest | Gets a value that indicates whether the request is an AspNetWebSocket request. |
|
IsWebSocketRequestUpgrading | Gets a value that indicates whether the connection is upgrading from an HTTP connection to an AspNetWebSocket connection. |
|
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. |
|
PageInstrumentation | Gets a reference to the page-instrumentation service instance for this 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. |
|
ThreadAbortOnTimeout | Gets or sets a value that specifies whether the ASP.NET runtime should call Thread.Abort on the thread that is servicing this request when the request times out. |
|
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. |
|
WebSocketNegotiatedProtocol | Gets the negotiated protocol that was sent from the server to the client for an AspNetWebSocket connection. |
|
WebSocketRequestedProtocols | Gets the ordered list of protocols requested by the client. |