Share via


PageConventionCollectionExtensions.AuthorizeAreaPage 메서드

정의

오버로드

AuthorizeAreaPage(PageConventionCollection, String, String)

지정된 영역 페이지에 대한 권한 부여가 필요합니다.

AuthorizeAreaPage(PageConventionCollection, String, String, String)

지정된 정책을 사용하여 지정된 영역 페이지에 대한 권한 부여가 필요합니다.

AuthorizeAreaPage(PageConventionCollection, String, String)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

지정된 영역 페이지에 대한 권한 부여가 필요합니다.

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

매개 변수

conventions
PageConventionCollection

구성할 PageConventionCollection입니다.

areaName
String

영역 이름입니다.

pageName
String

페이지 이름(예: )입니다. /Users/List

페이지 이름은 지정된 영역에 대한 페이지 루트 디렉터리를 기준으로 확장명 없는 파일의 경로입니다. 예를 들어 Areas/Identity/Pages/Manage/Accounts.cshtml 파일의 페이지 이름은 입니다 /Manage/Accounts.

반환

PageConventionCollection

적용 대상

AuthorizeAreaPage(PageConventionCollection, String, String, String)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

지정된 정책을 사용하여 지정된 영역 페이지에 대한 권한 부여가 필요합니다.

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

매개 변수

conventions
PageConventionCollection

구성할 PageConventionCollection입니다.

areaName
String

영역 이름입니다.

pageName
String

페이지 이름(예: )입니다. /Users/List

페이지 이름은 지정된 영역에 대한 페이지 루트 디렉터리를 기준으로 확장명 없는 파일의 경로입니다. 예를 들어 Areas/Identity/Pages/Manage/Accounts.cshtml 파일의 페이지 이름은 입니다 /Manage/Accounts.

policy
String

권한 부여 정책입니다.

반환

PageConventionCollection

적용 대상