Udostępnij za pośrednictwem


IAuthorizationPolicyProvider.GetPolicyAsync(String) Metoda

Definicja

Pobiera element AuthorizationPolicy od danego 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)

Parametry

policyName
String

Nazwa zasad do pobrania.

Zwraca

Nazwany AuthorizationPolicy.

Dotyczy