Partager via


PolicyServiceCollectionExtensions.AddAuthorizationBuilder Méthode

Définition

Ajoute des services d’autorisation au spécifié IServiceCollection.

public static Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddAuthorizationBuilder (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthorizationBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
<Extension()>
Public Function AddAuthorizationBuilder (services As IServiceCollection) As AuthorizationBuilder

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

AuthorizationBuilder à utiliser pour chaîner des appels supplémentaires.

S’applique à