PolicyServiceCollectionExtensions.AddAuthorizationBuilder Methode

Definition

Fügt dem angegebenen IServiceCollectionAutorisierungsdienste hinzu.

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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

Gibt zurück

Die AuthorizationBuilder-Schnittstelle zur Verkettung weiterer Aufrufe.

Gilt für: