Udostępnij za pośrednictwem


MvcCoreMvcCoreBuilderExtensions.AddAuthorization Metoda

Definicja

Przeciążenia

AddAuthorization(IMvcCoreBuilder)

Konfiguruje usługi uwierzytelniania i autoryzacji dla programu builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Konfiguruje usługi uwierzytelniania i autoryzacji dla programu builder.

AddAuthorization(IMvcCoreBuilder)

Źródło:
MvcCoreMvcCoreBuilderExtensions.cs
Źródło:
MvcCoreMvcCoreBuilderExtensions.cs
Źródło:
MvcCoreMvcCoreBuilderExtensions.cs

Konfiguruje usługi uwierzytelniania i autoryzacji dla programu 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

Parametry

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

Zwraca

Element IMvcCoreBuilder.

Dotyczy

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Źródło:
MvcCoreMvcCoreBuilderExtensions.cs
Źródło:
MvcCoreMvcCoreBuilderExtensions.cs
Źródło:
MvcCoreMvcCoreBuilderExtensions.cs

Konfiguruje usługi uwierzytelniania i autoryzacji dla programu 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

Parametry

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

setupAction
Action<AuthorizationOptions>

Element Action do skonfigurowania elementu AuthorizationOptions.

Zwraca

Element IMvcCoreBuilder.

Dotyczy