共用方式為


PageConventionCollectionExtensions.AuthorizePage 方法

定義

多載

AuthorizePage(PageConventionCollection, String)

需要指定頁面的授權。

AuthorizePage(PageConventionCollection, String, String)

需要具有指定名稱之頁面之指定原則的授權。

AuthorizePage(PageConventionCollection, String)

來源:
PageConventionCollectionExtensions.cs
來源:
PageConventionCollectionExtensions.cs
來源:
PageConventionCollectionExtensions.cs

需要指定頁面的授權。

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

參數

pageName
String

頁面名稱。

傳回

PageConventionCollection

適用於

AuthorizePage(PageConventionCollection, String, String)

來源:
PageConventionCollectionExtensions.cs
來源:
PageConventionCollectionExtensions.cs
來源:
PageConventionCollectionExtensions.cs

需要具有指定名稱之頁面之指定原則的授權。

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

參數

pageName
String

頁面名稱。

policy
String

授權原則。

傳回

PageConventionCollection

適用於