RouteData RouteData RouteData RouteData Class

定义

封装有关路由的信息。Encapsulates information about a route.

public ref class RouteData
public class RouteData
type RouteData = class
Public Class RouteData
继承
RouteDataRouteDataRouteDataRouteData

注解

RouteData类包含请求的路由的值。The RouteData class contains the values for a requested route. 通常情况下,检索RouteData对象通过调用GetRouteData方法。Typically, you retrieve a RouteData object by calling the GetRouteData method.

构造函数

RouteData() RouteData() RouteData() RouteData()

初始化 RouteData 类的新实例。Initializes a new instance of the RouteData class.

RouteData(RouteBase, IRouteHandler) RouteData(RouteBase, IRouteHandler) RouteData(RouteBase, IRouteHandler) RouteData(RouteBase, IRouteHandler)

使用指定路由和路由处理程序初始化 RouteData 类的新实例。Initializes a new instance of the RouteData class by using the specified route and route handler.

属性

DataTokens DataTokens DataTokens DataTokens

获取在 ASP.NET 路由确定路由是否匹配请求时,传递到路由处理程序但未使用的自定义值的集合。Gets a collection of custom values that are passed to the route handler but are not used when ASP.NET routing determines whether the route matches a request.

Route Route Route Route

获取或设置表示路由的对象。Gets or sets the object that represents a route.

RouteHandler RouteHandler RouteHandler RouteHandler

获取或设置处理所请求路由的对象。Gets or sets the object that processes a requested route.

Values Values Values Values

获取路由的 URL 参数值和默认值的集合。Gets a collection of URL parameter values and default values for the route.

方法

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)
GetRequiredString(String) GetRequiredString(String) GetRequiredString(String) GetRequiredString(String)

使用指定标识符检索值。Retrieves the value with the specified identifier.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

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

创建当前 Object 的浅表副本。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)

适用于

另请参阅