PageConventionCollectionExtensions.AuthorizeFolder 方法

定义

重载

AuthorizeFolder(PageConventionCollection, String)

需要对指定文件夹下的所有页面进行授权。

AuthorizeFolder(PageConventionCollection, String, String)

需要对指定文件夹下的所有页面进行授权。

AuthorizeFolder(PageConventionCollection, String)

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

需要对指定文件夹下的所有页面进行授权。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeFolder (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath);
static member AuthorizeFolder : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AuthorizeFolder (conventions As PageConventionCollection, folderPath As String) As PageConventionCollection

参数

folderPath
String

文件夹路径。

返回

PageConventionCollection

适用于

AuthorizeFolder(PageConventionCollection, String, String)

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

需要对指定文件夹下的所有页面进行授权。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeFolder (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath, string policy);
static member AuthorizeFolder : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * string * string -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function AuthorizeFolder (conventions As PageConventionCollection, folderPath As String, policy As String) As PageConventionCollection

参数

folderPath
String

文件夹路径。

policy
String

授权策略。

返回

PageConventionCollection

适用于