PageConventionCollectionExtensions.AuthorizePage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AuthorizePage(PageConventionCollection, String) |
Requires authorization for the specified page. |
AuthorizePage(PageConventionCollection, String, String) |
Requires authorization with the specified policy for the page with the specified name. |
AuthorizePage(PageConventionCollection, String)
Requires authorization for the specified page.
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
- conventions
- PageConventionCollection
The PageConventionCollection to configure.
- pageName
- String
The page name.
Returns
Applies to
AuthorizePage(PageConventionCollection, String, String)
Requires authorization with the specified policy for 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
- conventions
- PageConventionCollection
The PageConventionCollection to configure.
- pageName
- String
The page name.
- policy
- String
The authorization policy.