Udostępnij za pośrednictwem


PageConventionCollectionExtensions.AllowAnonymousToFolder Metoda

Definicja

Zezwala na dostęp anonimowy do wszystkich stron w określonym folderze.

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

Parametry

conventions
PageConventionCollection

Element do skonfigurowania PageConventionCollection .

folderPath
String

Ścieżka folderu.

Zwraca

Element PageConventionCollection.

Dotyczy