RequestContext RequestContext RequestContext RequestContext Class

Definition

Encapsulates information about an HTTP request that matches a defined route.

public ref class RequestContext
public class RequestContext
type RequestContext = class
Public Class RequestContext
Inheritance
RequestContextRequestContextRequestContextRequestContext

Remarks

The RequestContext class contains information about the HTTP request in the HttpContext property. It contains information about the route that matched the current request in the RouteData property.

When you construct a URL from a route, you pass an instance of the RequestContext class to the RouteCollection.GetVirtualPath method.

Constructors

RequestContext() RequestContext() RequestContext() RequestContext()

Initializes a new instance of the RequestContext class.

RequestContext(HttpContextBase, RouteData) RequestContext(HttpContextBase, RouteData) RequestContext(HttpContextBase, RouteData) RequestContext(HttpContextBase, RouteData)

Initializes a new instance of the RequestContext class.

Properties

HttpContext HttpContext HttpContext HttpContext

Gets information about the HTTP request.

RouteData RouteData RouteData RouteData

Gets information about the requested route.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also