RequestContext RequestContext RequestContext RequestContext Class

Definición

Encapsula información sobre una solicitud HTTP que coincide con una ruta definida.Encapsulates information about an HTTP request that matches a defined route.

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

Comentarios

El RequestContext clase contiene información sobre la solicitud HTTP en el HttpContext propiedad.The RequestContext class contains information about the HTTP request in the HttpContext property. Contiene información acerca de la ruta que coincide con la solicitud actual en el RouteData propiedad.It contains information about the route that matched the current request in the RouteData property.

Cuando se construye una dirección URL de una ruta, pase una instancia de la RequestContext clase a la RouteCollection.GetVirtualPath método.When you construct a URL from a route, you pass an instance of the RequestContext class to the RouteCollection.GetVirtualPath method.

Constructores

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

Inicializa una nueva instancia de la clase RequestContext.Initializes a new instance of the RequestContext class.

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

Inicializa una nueva instancia de la clase RequestContext.Initializes a new instance of the RequestContext class.

Propiedades

HttpContext HttpContext HttpContext HttpContext

Obtiene información sobre la solicitud HTTP.Gets information about the HTTP request.

RouteData RouteData RouteData RouteData

Obtiene información sobre la ruta solicitada.Gets information about the requested route.

Métodos

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

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

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

Sirve como la función hash predeterminada.Serves as the default hash function.

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

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

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

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

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

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a

Consulte también: