Compartilhar via


PageConventionCollectionExtensions.AllowAnonymousToPage Método

Definição

Permite o acesso anônimo à página com o nome especificado.

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

Parâmetros

conventions
PageConventionCollection

O PageConventionCollection a ser configurado.

pageName
String

O nome da página.

Retornos

O PageConventionCollection.

Aplica-se a