PageConventionCollectionExtensions.AllowAnonymousToFolder 方法

定义

允许匿名访问指定文件夹下的所有页面。

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

参数

folderPath
String

文件夹路径。

返回

PageConventionCollection

适用于