Sdílet prostřednictvím


AuthorizationPolicy Konstruktor

Definice

Vytvoří novou instanci položky 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))

Parametry

requirements
IEnumerable<IAuthorizationRequirement>

Seznam IAuthorizationRequirementzásad, které musí být úspěšné, aby byly tyto zásady úspěšné.

authenticationSchemes
IEnumerable<String>

Schémata ověřování se requirements vyhodnocují.

Platí pro