PageConventionCollectionExtensions.AddPageRoute メソッド

定義

指定した を、指定した route のページに追加します pageName

このページは、パス ベースのルートの既定のセットに加えて を介して route ルーティングできます。 このページに対して生成されたすべてのリンクは、指定されたルートを使用します。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddPageRoute (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string route);
static member AddPageRoute : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AddPageRoute (conventions As PageConventionCollection, pageName As String, route As String) As PageConventionCollection

パラメーター

pageName
String

ページの名前。

route
String

ページに関連付けるルート。

戻り値

PageConventionCollection

適用対象