Export (0) Print
Expand All

HttpContext Members

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

The following tables list the members exposed by the HttpContext type.

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

  Name Description
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 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

(see also Protected Methods )
  Name Description
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  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static GetAppConfig Returns requested configuration information for the current application.
Public method GetConfig Returns requested configuration information for the current HTTP request.
Public method Static 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 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)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method 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.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method 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)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.IServiceProvider.GetService Returns an object for the current service type.
Top

Community Additions

ADD
Show:
© 2015 Microsoft