AuthorizationPolicy.CombineAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>) |
結合 AuthorizationPolicy 所指定 |
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>) |
結合 AuthorizationPolicy 所指定 |
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)
結合 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>)
結合 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
之 所提供的授權原則組合。