PageConventionCollectionExtensions.AllowAnonymousToAreaPage メソッド

定義

指定した領域にある指定した名前を持つページへの匿名アクセスを許可します。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToAreaPage (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName);
static member AllowAnonymousToAreaPage : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AllowAnonymousToAreaPage (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

適用対象