Share via


PageConventionCollectionExtensions.AllowAnonymousToPage Method

Definition

Allows anonymous access to the page with the specified name.

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

Parameters

conventions
PageConventionCollection

The PageConventionCollection to configure.

pageName
String

The page name.

Returns

The PageConventionCollection.

Applies to