Dela via


PageConventionCollectionExtensions.AuthorizePage Method

Definition

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)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

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

The PageConventionCollection.

Applies to

AuthorizePage(PageConventionCollection, String, String)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

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.

Returns

The PageConventionCollection.

Applies to