PageConventionCollectionExtensions.AllowAnonymousToAreaFolder メソッド

定義

指定したエリア フォルダーのすべてのページへの匿名アクセスを許可します。

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

適用対象