PolicyServiceCollectionExtensions.AddAuthorizationPolicyEvaluator(IServiceCollection) PolicyServiceCollectionExtensions.AddAuthorizationPolicyEvaluator(IServiceCollection) PolicyServiceCollectionExtensions.AddAuthorizationPolicyEvaluator(IServiceCollection) PolicyServiceCollectionExtensions.AddAuthorizationPolicyEvaluator(IServiceCollection) Method

Definition

Adds the authorization policy evaluator service to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddAuthorizationPolicyEvaluator(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorizationPolicyEvaluator (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthorizationPolicyEvaluator : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthorizationPolicyEvaluator (services As IServiceCollection) As IServiceCollection

Parameters

services
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection so that additional calls can be chained.

Applies to