AuthorizationPolicy 构造函数

定义

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

参数

requirements
IEnumerable<IAuthorizationRequirement>

必须成功才能使此策略成功的 列表 IAuthorizationRequirement

authenticationSchemes
IEnumerable<String>

针对 的身份验证方案 requirements 进行评估。

适用于