共用方式為


IAuthorizationPolicyProvider.GetDefaultPolicyAsync 方法

定義

取得預設授權原則。

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ GetDefaultPolicyAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> GetDefaultPolicyAsync ();
abstract member GetDefaultPolicyAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Function GetDefaultPolicyAsync () As Task(Of AuthorizationPolicy)

傳回

預設授權原則。

適用於