Export (0) Print
Expand All

HttpContext Members

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

The HttpContext type exposes the following members.

  NameDescription
Public method HttpContext Overloaded. Initializes a new instance of the HttpContext class.
Top

  NameDescription
Public method AddError Adds an exception to the exception collection for the current HTTP request.
Public method ClearError Clears all errors for the current HTTP request.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetAppConfig Obsolete. Returns requested configuration information for the current application.
Public method GetConfig Obsolete. Returns requested configuration information for the current HTTP request.
Public method Static member GetGlobalResourceObject Overloaded. Gets an application-level resource.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetLocalResourceObject Overloaded. Gets a page-level resource.
Public method GetSection Gets a specified configuration section for the current application's default configuration.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemapHandler Enables you to specify a handler for the request.
Public method 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property AllErrors Gets an array of errors accumulated while processing an HTTP request.
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 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 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 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 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.
Top

  NameDescription
Explicit interface implemetation Private method IServiceProvider.GetService Infrastructure. Returns an object for the current service type.
Top

Community Additions

ADD
Show:
© 2014 Microsoft