PolicyServiceCollectionExtensions.AddAuthorizationBuilder 方法

定义

将授权服务添加到指定的 IServiceCollection

public static Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddAuthorizationBuilder (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthorizationBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
<Extension()>
Public Function AddAuthorizationBuilder (services As IServiceCollection) As AuthorizationBuilder

参数

services
IServiceCollection

要向其中添加服务的 IServiceCollection

返回

AuthorizationBuilder,以便可以链接其他调用。

适用于