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/

文件夹路径是文件夹的路径,相对于指定区域的页根目录。 例如,文件 Areas/Identity/Pages/Manage/Accounts.cshtml 的文件夹路径为 /Manage

.

返回

PageConventionCollection

适用于