Share via


PageConventionCollectionExtensions.AuthorizeAreaFolder 메서드

정의

오버로드

AuthorizeAreaFolder(PageConventionCollection, String, String, String)

지정된 폴더 아래의 모든 페이지에 대해 지정된 정책을 사용하여 권한 부여가 필요합니다.

AuthorizeAreaFolder(PageConventionCollection, String, String)

지정된 폴더 아래의 모든 페이지에 대한 기본 정책을 사용하여 권한 부여가 필요합니다.

AuthorizeAreaFolder(PageConventionCollection, String, String, String)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

지정된 폴더 아래의 모든 페이지에 대해 지정된 정책을 사용하여 권한 부여가 필요합니다.

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

매개 변수

conventions
PageConventionCollection

구성할 PageConventionCollection입니다.

areaName
String

영역 이름입니다.

folderPath
String

폴더 경로(예: )입니다. /Manage/

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

policy
String

권한 부여 정책입니다.

반환

PageConventionCollection

적용 대상

AuthorizeAreaFolder(PageConventionCollection, String, String)

Source:
PageConventionCollectionExtensions.cs
Source:
PageConventionCollectionExtensions.cs

지정된 폴더 아래의 모든 페이지에 대한 기본 정책을 사용하여 권한 부여가 필요합니다.

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

매개 변수

conventions
PageConventionCollection

구성할 PageConventionCollection입니다.

areaName
String

영역 이름입니다.

folderPath
String

폴더 경로(예: )입니다. /Manage/

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

반환

PageConventionCollection

적용 대상