DefaultAuthorizationPolicyProvider.GetDefaultPolicyAsync 方法

定义

获取默认授权策略。

public:
 virtual 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>
override this.GetDefaultPolicyAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Function GetDefaultPolicyAsync () As Task(Of AuthorizationPolicy)

返回

默认授权策略。

实现

适用于