PageConventionCollectionExtensions.AuthorizeAreaFolder PageConventionCollectionExtensions.AuthorizeAreaFolder PageConventionCollectionExtensions.AuthorizeAreaFolder Method

Definition

Overloads

AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String)

Adds a AuthorizeFilter with the specified policy to all pages under the specified folder.

AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the default policy to all pages under the specified folder.

AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String, String)

Adds a AuthorizeFilter with the specified policy to all pages under the specified folder.

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

Parameters

areaName
String String String

The area name.

folderPath
String String String

The folder path e.g. /Manage/

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

policy
String String String

The authorization policy.

Returns

AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String) AuthorizeAreaFolder(PageConventionCollection, String, String)

Adds a AuthorizeFilter with the default policy to all pages under the specified folder.

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

Parameters

areaName
String String String

The area name.

folderPath
String String String

The folder path e.g. /Manage/

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

Returns

Applies to