Bagikan melalui


PageConventionCollectionExtensions.AllowAnonymousToFolder Metode

Definisi

Memperbolehkan akses anonim ke semua halaman di bawah folder yang ditentukan.

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

Parameter

conventions
PageConventionCollection

untuk PageConventionCollection mengonfigurasi.

folderPath
String

Jalur folder.

Mengembalikan

PageConventionCollection.

Berlaku untuk