Sdílet prostřednictvím


MvcCoreMvcCoreBuilderExtensions.AddAuthorization Metoda

Definice

Přetížení

AddAuthorization(IMvcCoreBuilder)

Konfiguruje služby ověřování a autorizace pro builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Konfiguruje služby ověřování a autorizace pro builder.

AddAuthorization(IMvcCoreBuilder)

Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs
Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs
Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs

Konfiguruje služby ověřování a autorizace pro 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

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs
Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs
Zdroj:
MvcCoreMvcCoreBuilderExtensions.cs

Konfiguruje služby ověřování a autorizace pro 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

setupAction
Action<AuthorizationOptions>

An Action pro konfiguraci objektu AuthorizationOptions.

Návraty

Hodnota IMvcCoreBuilder

Platí pro