MvcCoreMvcCoreBuilderExtensions.AddAuthorization Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddAuthorization(IMvcCoreBuilder) |
Configure les services d’authentification et d’autorisation pour |
AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>) |
Configure les services d’authentification et d’autorisation pour |
AddAuthorization(IMvcCoreBuilder)
Configure les services d’authentification et d’autorisation pour builder
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddAuthorization (builder As IMvcCoreBuilder) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
L’IMvcCoreBuilderopérateur
Retours
L’IMvcCoreBuilderopérateur
S’applique à
AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)
Configure les services d’authentification et d’autorisation pour builder
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> setupAction);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddAuthorization (builder As IMvcCoreBuilder, setupAction As Action(Of AuthorizationOptions)) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
L’IMvcCoreBuilderopérateur
- setupAction
- Action<AuthorizationOptions>
Action permettant de configurer le AuthorizationOptions.
Retours
L’IMvcCoreBuilderopérateur