Partager via


AuthAppBuilderExtensions.UseAuthentication(IApplicationBuilder) Méthode

Définition

Ajoute au AuthenticationMiddleware spécifié IApplicationBuilder, ce qui active les fonctionnalités d’authentification.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseAuthentication (app As IApplicationBuilder) As IApplicationBuilder

Paramètres

app
IApplicationBuilder

IApplicationBuilder à laquelle ajouter le middleware.

Retours

Référence à cette instance à la fin de l’opération.

S’applique à