AuthorizationPolicy.CombineAsync 方法

定义

重载

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)

合并 AuthorizationPolicy 指定的 policyProvider提供的 。

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>)

合并 AuthorizationPolicy 指定的 policyProvider提供的 。

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)

Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs

合并 AuthorizationPolicy 指定的 policyProvider提供的 。

public:
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ CombineAsync(Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider ^ policyProvider, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizeData ^> ^ authorizeData);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> CombineAsync (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizeData> authorizeData);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy?> CombineAsync (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizeData> authorizeData);
static member CombineAsync : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * seq<Microsoft.AspNetCore.Authorization.IAuthorizeData> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Shared Function CombineAsync (policyProvider As IAuthorizationPolicyProvider, authorizeData As IEnumerable(Of IAuthorizeData)) As Task(Of AuthorizationPolicy)

参数

policyProvider
IAuthorizationPolicyProvider

IAuthorizationPolicyProvider 它提供要合并的策略。

authorizeData
IEnumerable<IAuthorizeData>

用于将授权应用到资源的授权数据的集合。

返回

一个新的 AuthorizationPolicy ,它表示由指定的 policyProvider提供的授权策略的组合。

适用于

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>)

Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs
Source:
AuthorizationPolicy.cs

合并 AuthorizationPolicy 指定的 policyProvider提供的 。

public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy?> CombineAsync (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizeData> authorizeData, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> policies);
static member CombineAsync : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * seq<Microsoft.AspNetCore.Authorization.IAuthorizeData> * seq<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Shared Function CombineAsync (policyProvider As IAuthorizationPolicyProvider, authorizeData As IEnumerable(Of IAuthorizeData), policies As IEnumerable(Of AuthorizationPolicy)) As Task(Of AuthorizationPolicy)

参数

policyProvider
IAuthorizationPolicyProvider

IAuthorizationPolicyProvider 它提供要合并的策略。

authorizeData
IEnumerable<IAuthorizeData>

用于将授权应用到资源的授权数据的集合。

policies
IEnumerable<AuthorizationPolicy>

要合并的策略集合 AuthorizationPolicy

返回

一个新的 AuthorizationPolicy ,它表示由指定的 policyProvider提供的授权策略的组合。

适用于