Condividi tramite


MvcCoreMvcCoreBuilderExtensions.AddAuthorization Metodo

Definizione

Overload

AddAuthorization(IMvcCoreBuilder)

Configura i servizi di autenticazione e autorizzazione per builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Configura i servizi di autenticazione e autorizzazione per builder.

AddAuthorization(IMvcCoreBuilder)

Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs

Configura i servizi di autenticazione e autorizzazione per 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs

Configura i servizi di autenticazione e autorizzazione per 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

setupAction
Action<AuthorizationOptions>

Oggetto Action per la configurazione di AuthorizationOptions.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a