PageConventionCollection.AddFolderRouteModelConvention(String, Action<PageRouteModel>) メソッド

定義

指定したフォルダーのすべてのページのインスタンスに対してアクションを呼び出 IPageRouteModelConvention PageRouteModel す を作成して追加します。

public:
 Microsoft::AspNetCore::Mvc::ApplicationModels::IPageRouteModelConvention ^ AddFolderRouteModelConvention(System::String ^ folderPath, Action<Microsoft::AspNetCore::Mvc::ApplicationModels::PageRouteModel ^> ^ action);
public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddFolderRouteModelConvention (string folderPath, Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel> action);
member this.AddFolderRouteModelConvention : string * Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention
Public Function AddFolderRouteModelConvention (folderPath As String, action As Action(Of PageRouteModel)) As IPageRouteModelConvention

パラメーター

folderPath
String

ルートを基準にした相対フォルダー Razor Pagesパス。 例: /Users/

戻り値

IPageRouteModelConvention

追加された IPageApplicationModelConvention

適用対象