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 的淺層複本 (Shallow Copy)。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)

適用於

另請參閱