Partager via


MvcCoreMvcCoreBuilderExtensions.AddAuthorization Méthode

Définition

Surcharges

AddAuthorization(IMvcCoreBuilder)

Configure les services d’authentification et d’autorisation pour builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Configure les services d’authentification et d’autorisation pour builder.

AddAuthorization(IMvcCoreBuilder)

Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs

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>)

Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs

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

S’applique à