PageConventionCollectionExtensions.AuthorizeFolder 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AuthorizeFolder(PageConventionCollection, String) |
需要对指定文件夹下的所有页面进行授权。 |
AuthorizeFolder(PageConventionCollection, String, String) |
需要对指定文件夹下的所有页面进行授权。 |
AuthorizeFolder(PageConventionCollection, String)
需要对指定文件夹下的所有页面进行授权。
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
参数
- conventions
- PageConventionCollection
要配置的 PageConventionCollection。
- folderPath
- String
文件夹路径。
返回
适用于
AuthorizeFolder(PageConventionCollection, String, String)
需要对指定文件夹下的所有页面进行授权。
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
参数
- conventions
- PageConventionCollection
要配置的 PageConventionCollection。
- folderPath
- String
文件夹路径。
- policy
- String
授权策略。