次の方法で共有


DefaultAuthorizationPolicyProvider.GetPolicyAsync(String) メソッド

定義

指定された から を AuthorizationPolicy 取得します。 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)

パラメーター

policyName
String

取得するポリシー名。

戻り値

名前付き AuthorizationPolicy

実装

適用対象