語言

AttributeRouteModel 類別

定義

屬性路由的模型。

public ref class AttributeRouteModel
public class AttributeRouteModel
type AttributeRouteModel = class
Public Class AttributeRouteModel
繼承
AttributeRouteModel

建構函式

名稱 Description
AttributeRouteModel()

初始化 Microsoft.AspNetCore.Mvc.Routing.AttributeRoute 的新執行個體。

AttributeRouteModel(AttributeRouteModel)

的複製建構函式 Microsoft.AspNetCore.Mvc.Routing.AttributeRoute 。

AttributeRouteModel(IRouteTemplateProvider)

使用指定的 templateProvider ,初始化 的新實例 Microsoft.AspNetCore.Mvc.Routing.AttributeRoute 。

屬性

名稱 Description
Attribute

取得 IRouteTemplateProvider。

IsAbsoluteTemplate

取得或設定值,這個值會判斷此模型的這個路由範本是否覆寫父範圍的路由範本。

Name

取得或設定路由名稱。

Order

取得或設定路由順序。

SuppressLinkGeneration

取得或設定值,這個值會判斷此模型是否參與連結產生。

SuppressPathMatching

取得或設定值,這個值會決定此模型是否參與路徑比對 (輸入路由) 。

Template

取得或設定屬性路由範本。

方法

名稱 Description
CombineAttributeRouteModel(AttributeRouteModel, AttributeRouteModel)

結合兩 AttributeRouteModel 個實例,並傳回具有結果的新 AttributeRouteModel 實例。

CombineTemplates(String, String)

結合屬性路由的前置詞和路由範本。

IsOverridePattern(String)

判斷範本模式是否可用來覆寫前置詞。

ReplaceTokens(String, IDictionary<String,String>)

以提供的值取代範本中的權杖。

ReplaceTokens(String, IDictionary<String,String>, IOutboundParameterTransformer)

將範本中的權杖取代為提供的值和路由權杖轉換器。

適用於