Partilhar via


AuthorizationPolicy.CombineAsync Método

Definição

Sobrecargas

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)

Combina o AuthorizationPolicy fornecido pelo especificado policyProvider.

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

Combina o AuthorizationPolicy fornecido pelo especificado policyProvider.

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)

Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs

Combina o AuthorizationPolicy fornecido pelo especificado 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)

Parâmetros

policyProvider
IAuthorizationPolicyProvider

Um IAuthorizationPolicyProvider que fornece as políticas a serem combinadas.

authorizeData
IEnumerable<IAuthorizeData>

Uma coleção de dados de autorização usados para aplicar autorização a um recurso.

Retornos

Um novo AuthorizationPolicy que representa a combinação das políticas de autorização fornecidas pelo especificado policyProvider.

Aplica-se a

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

Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs
Origem:
AuthorizationPolicy.cs

Combina o AuthorizationPolicy fornecido pelo especificado 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)

Parâmetros

policyProvider
IAuthorizationPolicyProvider

Um IAuthorizationPolicyProvider que fornece as políticas a serem combinadas.

authorizeData
IEnumerable<IAuthorizeData>

Uma coleção de dados de autorização usados para aplicar autorização a um recurso.

policies
IEnumerable<AuthorizationPolicy>

Uma coleção de AuthorizationPolicy políticas a serem combinadas.

Retornos

Um novo AuthorizationPolicy que representa a combinação das políticas de autorização fornecidas pelo especificado policyProvider.

Aplica-se a