Delen via


AuthorizationPolicy Constructor

Definition

Creates a new instance of AuthorizationPolicy.

public:
 AuthorizationPolicy(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^> ^ requirements, System::Collections::Generic::IEnumerable<System::String ^> ^ authenticationSchemes);
public AuthorizationPolicy (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> requirements, System.Collections.Generic.IEnumerable<string> authenticationSchemes);
new Microsoft.AspNetCore.Authorization.AuthorizationPolicy : seq<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> * seq<string> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicy
Public Sub New (requirements As IEnumerable(Of IAuthorizationRequirement), authenticationSchemes As IEnumerable(Of String))

Parameters

requirements
IEnumerable<IAuthorizationRequirement>

The list of IAuthorizationRequirements which must succeed for this policy to be successful.

authenticationSchemes
IEnumerable<String>

The authentication schemes the requirements are evaluated against.

Applies to