Aracılığıyla paylaş


AuthorizationPolicy Oluşturucu

Tanım

AuthorizationPolicy öğesinin yeni bir örneğini oluşturur.

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))

Parametreler

requirements
IEnumerable<IAuthorizationRequirement>

Bu ilkenin IAuthorizationRequirementbaşarılı olması için başarılı olması gerekenlerin listesi.

authenticationSchemes
IEnumerable<String>

üzerinde değerlendirilen kimlik doğrulama düzenleri requirements .

Şunlara uygulanır