Export (0) Print
Expand All

HttpContext Methods

The HttpContext type exposes the following members.

  Name Description
Public method AcceptWebSocketRequest(Func<AspNetWebSocketContext, Task>) Accepts an AspNetWebSocket request using the specified user function.
Public method AcceptWebSocketRequest(Func<AspNetWebSocketContext, Task>, AspNetWebSocketOptions) Accepts an AspNetWebSocket request using the specified user function and options object.
Public method AddError Adds an exception to the exception collection for the current HTTP request.
Public method AddOnRequestCompleted Raises a virtual event that occurs when the HTTP part of the request is ending.
Public method ClearError Clears all errors for the current HTTP request.
Public method DisposeOnPipelineCompleted Enables an object's Dispose method to be called when the AspNetWebSocket connection part of this request is completed.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (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(String, String) Gets an application-level resource object based on the specified ClassKey and ResourceKey properties.
Public method Static member GetGlobalResourceObject(String, String, CultureInfo) Gets an application-level resource object based on the specified ClassKey and ResourceKey properties, and on the CultureInfo object.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Static member GetLocalResourceObject(String, String) Gets a page-level resource object based on the specified VirtualPath and ResourceKey properties.
Public method Static member GetLocalResourceObject(String, String, CultureInfo) Gets a page-level resource object based on the specified VirtualPath and ResourceKey properties, and on the CultureInfo object.
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 RemapHandler Enables you to specify a handler for the request.
Public method RewritePath(String) Rewrites the URL using the given path.
Public method RewritePath(String, Boolean) Rewrites the URL using the given path and a Boolean value that specifies whether the virtual path for server resources is modified.
Public method RewritePath(String, String, String) Rewrites the URL by using the given path, path information, and query string information.
Public method RewritePath(String, String, String, Boolean) Rewrites the URL using the given virtual path, path information, query string information, and a Boolean value that specifies whether the client file path is set to the rewrite path.
Public method SetSessionStateBehavior Sets the type of session state behavior that is required in order to support an HTTP request.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method IServiceProvider.GetService Infrastructure. Returns an object for the current service type.
Top
Show:
© 2014 Microsoft