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)
Requires authorization for the specified page.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ AuthorizePage(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, System::String ^ pageName);
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:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ AuthorizePage(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, System::String ^ pageName, System::String ^ policy);
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.