Compartir a través de


DefaultAuthorizationPolicyProvider.GetPolicyAsync(String) Método

Definición

Obtiene un AuthorizationPolicy de la clase especificada. policyName

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ GetPolicyAsync(System::String ^ policyName);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> GetPolicyAsync (string policyName);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy?> GetPolicyAsync (string policyName);
abstract member GetPolicyAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
override this.GetPolicyAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Overridable Function GetPolicyAsync (policyName As String) As Task(Of AuthorizationPolicy)

Parámetros

policyName
String

Nombre de la directiva que se va a recuperar.

Devoluciones

objeto denominado AuthorizationPolicy.

Implementaciones

Se aplica a