Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpContext Properties

The HttpContext type exposes the following members.

  Name Description
Public property AllErrors Gets an array of errors accumulated while processing an HTTP request.
Public property 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.
Public property Application Gets the HttpApplicationState object for the current HTTP request.
Public property ApplicationInstance Gets or sets the HttpApplication object for the current HTTP request.
Public property AsyncPreloadMode Gets or sets an object that contains flags that pertain to asynchronous preload mode.
Public property Cache Gets the Cache object for the current application domain.
Public property Static member Current Gets or sets the HttpContext object for the current HTTP request.
Public property CurrentHandler Gets the IHttpHandler object that represents the currently executing handler.
Public property CurrentNotification Gets a RequestNotification value that indicates the current HttpApplication event that is processing.
Public property Error Gets the first error (if any) accumulated during HTTP request processing.
Public property Handler Gets or sets the IHttpHandler object responsible for processing the HTTP request.
Public property IsCustomErrorEnabled Gets a value indicating whether custom errors are enabled for the current HTTP request.
Public property IsDebuggingEnabled Gets a value indicating whether the current HTTP request is in debug mode.
Public property IsPostNotification Gets a value that is the current processing point in the ASP.NET pipeline just after an HttpApplication event has finished processing.
Public property IsWebSocketRequest Gets a value that indicates whether the request is an AspNetWebSocket request.
Public property IsWebSocketRequestUpgrading Gets a value that indicates whether the connection is upgrading from an HTTP connection to an AspNetWebSocket connection.
Public property 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.
Public property PageInstrumentation Gets a reference to the page-instrumentation service instance for this request.
Public property PreviousHandler Gets the IHttpHandler object for the parent handler.
Public property Profile Gets the ProfileBase object for the current user profile.
Public property Request Gets the HttpRequest object for the current HTTP request.
Public property Response Gets the HttpResponse object for the current HTTP response.
Public property Server Gets the HttpServerUtility object that provides methods used in processing Web requests.
Public property Session Gets the HttpSessionState object for the current HTTP request.
Public property SkipAuthorization Gets or sets a value that specifies whether the UrlAuthorizationModule object should skip the authorization check for the current request.
Public property 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.
Public property Timestamp Gets the initial timestamp of the current HTTP request.
Public property Trace Gets the TraceContext object for the current HTTP response.
Public property User Gets or sets security information for the current HTTP request.
Public property WebSocketNegotiatedProtocol Gets the negotiated protocol that was sent from the server to the client for an AspNetWebSocket connection.
Public property WebSocketRequestedProtocols Gets the ordered list of protocols requested by the client.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.