PageConventionCollectionExtensions.AllowAnonymousToPage(PageConventionCollection, String) PageConventionCollectionExtensions.AllowAnonymousToPage(PageConventionCollection, String) PageConventionCollectionExtensions.AllowAnonymousToPage(PageConventionCollection, String) PageConventionCollectionExtensions.AllowAnonymousToPage(PageConventionCollection, String) Method

Definition

Allows anonymous access to the page with the specified name.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ AllowAnonymousToPage(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, System::String ^ pageName);
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

pageName
String String String String

The page name.

Returns

Applies to