Sdílet prostřednictvím


DefaultAuthorizationPolicyProvider.GetPolicyAsync(String) Metoda

Definice

Získá z daného objektu AuthorizationPolicypolicyName

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)

Parametry

policyName
String

Název zásady, který se má načíst.

Návraty

Pojmenovaný AuthorizationPolicy.

Implementuje

Platí pro