AuthorizationServiceCollectionExtensions.AddAuthorization Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
AddAuthorization(IServiceCollection) | |
AddAuthorization(IServiceCollection, Action<AuthorizationOptions>) |
AddAuthorization(IServiceCollection)
- Исходный код:
- AuthorizationServiceCollectionExtensions.cs
- Исходный код:
- AuthorizationServiceCollectionExtensions.cs
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthorization (services As IServiceCollection) As IServiceCollection
Параметры
- services
- IServiceCollection
Возвращаемое значение
Применяется к
AddAuthorization(IServiceCollection, Action<AuthorizationOptions>)
- Исходный код:
- AuthorizationServiceCollectionExtensions.cs
- Исходный код:
- AuthorizationServiceCollectionExtensions.cs
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> configure);
static member AddAuthorization : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthorization (services As IServiceCollection, configure As Action(Of AuthorizationOptions)) As IServiceCollection
Параметры
- services
- IServiceCollection
- configure
- Action<AuthorizationOptions>