PageConventionCollectionExtensions.AllowAnonymousToAreaFolder 方法

定義

允許匿名存取指定區域資料夾下的所有頁面。

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

參數

areaName
String

區功能變數名稱稱。

folderPath
String

資料夾路徑,例如 /Manage/

資料夾路徑是資料夾的路徑,相對於指定區域的 pages 根目錄。 例如,Areas/Identity/Pages/Manage/Accounts.cshtml 檔案的資料夾路徑是 /Manage

.

傳回

PageConventionCollection

適用於