AuthorizationPolicyBuilder 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AuthorizationPolicyBuilder(AuthorizationPolicy) |
创建 AuthorizationPolicyBuilder 的新实例。 |
AuthorizationPolicyBuilder(String[]) |
创建 AuthorizationPolicyBuilder 的新实例 |
AuthorizationPolicyBuilder(AuthorizationPolicy)
创建 AuthorizationPolicyBuilder 的新实例。
public:
AuthorizationPolicyBuilder(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public AuthorizationPolicyBuilder (Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
new Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder : Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Sub New (policy As AuthorizationPolicy)
参数
- policy
- AuthorizationPolicy
要复制的 AuthorizationPolicy。
适用于
AuthorizationPolicyBuilder(String[])
创建 AuthorizationPolicyBuilder 的新实例
public:
AuthorizationPolicyBuilder(... cli::array <System::String ^> ^ authenticationSchemes);
public AuthorizationPolicyBuilder (params string[] authenticationSchemes);
new Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder : string[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Sub New (ParamArray authenticationSchemes As String())
参数
- authenticationSchemes
- String[]
应针对策略进行评估的身份验证方案的数组。