MvcCoreMvcCoreBuilderExtensions.AddAuthorization Método

Definição

Sobrecargas

AddAuthorization(IMvcCoreBuilder)

Configura os serviços de autenticação e autorização para builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Configura os serviços de autenticação e autorização para builder.

AddAuthorization(IMvcCoreBuilder)

Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs

Configura os serviços de autenticação e autorização para 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

Parâmetros

Retornos

O IMvcCoreBuilder.

Aplica-se a

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs

Configura os serviços de autenticação e autorização para 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

Parâmetros

setupAction
Action<AuthorizationOptions>

Um Action para configurar o AuthorizationOptions.

Retornos

O IMvcCoreBuilder.

Aplica-se a