MvcCoreMvcCoreBuilderExtensions.AddAuthorization 方法

定義

多載

AddAuthorization(IMvcCoreBuilder)

設定 的 builder 驗證和授權服務。

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

設定 的 builder 驗證和授權服務。

AddAuthorization(IMvcCoreBuilder)

設定 的 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

參數

傳回

IMvcCoreBuilder

IMvcCoreBuilder

適用於

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

設定 的 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

參數

傳回

IMvcCoreBuilder

IMvcCoreBuilder

適用於