다음을 통해 공유


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.

구현

적용 대상