PageConventionCollectionExtensions.AuthorizeAreaPage メソッド

定義

オーバーロード

AuthorizeAreaPage(PageConventionCollection, String, String)

指定された領域ページに対する承認が必要です。

AuthorizeAreaPage(PageConventionCollection, String, String, String)

指定したポリシーを使用して、指定したエリア ページに対する承認が必要です。

AuthorizeAreaPage(PageConventionCollection, String, String)

指定された領域ページに対する承認が必要です。

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

パラメーター

areaName
String

エリア名。

pageName
String

ページ名 (例: ) /Users/List

ページ名は、指定された領域のページ ルート ディレクトリを基準に、拡張子のないファイルのパスです。 たとえば、ファイル Areas/Identity/Pages/Manage/Accounts.cshtml のページ名は です /Manage/Accounts

戻り値

PageConventionCollection

適用対象

AuthorizeAreaPage(PageConventionCollection, String, String, String)

指定したポリシーを使用して、指定したエリア ページに対する承認が必要です。

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

パラメーター

areaName
String

エリア名。

pageName
String

ページ名 (例: ) /Users/List

ページ名は、指定された領域のページ ルート ディレクトリを基準に、拡張子のないファイルのパスです。 たとえば、ファイル Areas/Identity/Pages/Manage/Accounts.cshtml のページ名は です /Manage/Accounts

policy
String

承認ポリシー。

戻り値

PageConventionCollection

適用対象