AuthorizationPolicy.CombineAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>) |
Combines the AuthorizationPolicy provided by the specified
|
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>) |
Combines the AuthorizationPolicy provided by the specified
|
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
Combines the AuthorizationPolicy provided by the specified
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)
Parameters
- policyProvider
- IAuthorizationPolicyProvider
A IAuthorizationPolicyProvider which provides the policies to combine.
- authorizeData
- IEnumerable<IAuthorizeData>
A collection of authorization data used to apply authorization to a resource.
Returns
A new AuthorizationPolicy which represents the combination of the
authorization policies provided by the specified policyProvider
.
Applies to
CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>)
- Source:
- AuthorizationPolicy.cs
- Source:
- AuthorizationPolicy.cs
- Source:
- AuthorizationPolicy.cs
Combines the AuthorizationPolicy provided by the specified
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)
Parameters
- policyProvider
- IAuthorizationPolicyProvider
A IAuthorizationPolicyProvider which provides the policies to combine.
- authorizeData
- IEnumerable<IAuthorizeData>
A collection of authorization data used to apply authorization to a resource.
- policies
- IEnumerable<AuthorizationPolicy>
A collection of AuthorizationPolicy policies to combine.
Returns
A new AuthorizationPolicy which represents the combination of the
authorization policies provided by the specified policyProvider
.