Partilhar via


PolicyServiceCollectionExtensions.AddAuthorizationBuilder Método

Definição

Adiciona serviços de autorização ao especificado 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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

Retornos

O AuthorizationBuilder para que chamadas adicionais possam ser encadeadas.

Aplica-se a