Dela via


MvcCoreMvcCoreBuilderExtensions.AddAuthorization Method

Definition

Overloads

AddAuthorization(IMvcCoreBuilder)

Configures authentication and authorization services for builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Configures authentication and authorization services for builder.

AddAuthorization(IMvcCoreBuilder)

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

Configures authentication and authorization services for 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

Parameters

Returns

The IMvcCoreBuilder.

Applies to

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

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

Configures authentication and authorization services for 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

Parameters

setupAction
Action<AuthorizationOptions>

An Action to configure the AuthorizationOptions.

Returns

The IMvcCoreBuilder.

Applies to