PageConventionCollectionExtensions.AllowAnonymousToPage 方法

定义

允许匿名访问具有指定名称的页面。

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

参数

pageName
String

页名称。

返回

PageConventionCollection

适用于