PageConventionCollectionExtensions.AllowAnonymousToFolder 方法

定義

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

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

參數

folderPath
String

資料夾路徑。

傳回

PageConventionCollection

適用於