PageConventionCollectionExtensions.AuthorizePage PageConventionCollectionExtensions.AuthorizePage PageConventionCollectionExtensions.AuthorizePage Method

Definition

Overloads

AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String)

Adds a AuthorizeFilter to the page with the specified name.

AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the specified policy to the page with the specified name.

AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String) AuthorizePage(PageConventionCollection, String)

Adds a AuthorizeFilter to the page with the specified name.

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

The page name.

Returns

AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String) AuthorizePage(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the specified policy to the page with the specified name.

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

The page name.

policy
String String String

The authorization policy.

Returns

Applies to