PageConventionCollectionExtensions.AuthorizeAreaFolder メソッド

定義

オーバーロード

AuthorizeAreaFolder(PageConventionCollection, String, String, String)

指定したフォルダーのすべてのページに対して、指定したポリシーを使用した承認が必要です。

AuthorizeAreaFolder(PageConventionCollection, String, String)

指定したフォルダーのすべてのページに対して、既定のポリシーによる承認が必要です。

AuthorizeAreaFolder(PageConventionCollection, String, String, String)

指定したフォルダーのすべてのページに対して、指定したポリシーを使用した承認が必要です。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaFolder (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath, string policy);
static member AuthorizeAreaFolder : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string * string * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AuthorizeAreaFolder (conventions As PageConventionCollection, areaName As String, folderPath As String, policy As String) As PageConventionCollection

パラメーター

areaName
String

エリア名。

folderPath
String

フォルダー パス (例: ) /Manage/

フォルダー パスは、指定された領域の pages ルート ディレクトリを基準としたフォルダーのパスです。 たとえば、ファイル Areas/Identity/Pages/Manage/Accounts.cshtml のフォルダー パスは です /Manage

policy
String

承認ポリシー。

戻り値

PageConventionCollection

適用対象

AuthorizeAreaFolder(PageConventionCollection, String, String)

指定したフォルダーのすべてのページに対して、既定のポリシーによる承認が必要です。

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

パラメーター

areaName
String

エリア名。

folderPath
String

フォルダー パス (例: ) /Manage/

フォルダー パスは、指定された領域の pages ルート ディレクトリを基準としたフォルダーのパスです。 たとえば、ファイル Areas/Identity/Pages/Manage/Accounts.cshtml のフォルダー パスは です /Manage

戻り値

PageConventionCollection

適用対象