Condividi tramite


IAuthorizationPolicyProvider.GetPolicyAsync(String) Metodo

Definizione

Ottiene un AuthorizationPolicy oggetto dall'oggetto specificato policyName

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

Parametri

policyName
String

Nome dei criteri da recuperare.

Restituisce

Oggetto denominato AuthorizationPolicy.

Si applica a