PageConventionCollectionExtensions.AuthorizeAreaPage PageConventionCollectionExtensions.AuthorizeAreaPage PageConventionCollectionExtensions.AuthorizeAreaPage Method

Definition

Overloads

AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String)

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

AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String)

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

AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String) AuthorizeAreaPage(PageConventionCollection, String, String)

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

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

Parameters

areaName
String String String

The area name.

pageName
String String String

The page name e.g. /Users/List

The page name is the path of the file without extension, relative to the pages root directory for the specified area. e.g. the page name for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is /Manage/Accounts.

Returns

AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String) AuthorizeAreaPage(PageConventionCollection, String, String, String)

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

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

Parameters

areaName
String String String

The area name.

pageName
String String String

The page name e.g. /Users/List

The page name is the path of the file without extension, relative to the pages root directory for the specified area. e.g. the page name for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is /Manage/Accounts.

policy
String String String

The authorization policy.

Returns

Applies to