다음을 통해 공유


IAuthorizationPolicyProvider.GetPolicyAsync(String) 메서드

정의

지정된 에서 을 AuthorizationPolicy 가져옵니다. policyName

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ GetPolicyAsync(System::String ^ policyName);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> GetPolicyAsync (string policyName);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy?> GetPolicyAsync (string policyName);
abstract member GetPolicyAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy>
Public Function GetPolicyAsync (policyName As String) As Task(Of AuthorizationPolicy)

매개 변수

policyName
String

검색할 정책 이름입니다.

반환

명명된 입니다 AuthorizationPolicy.

적용 대상