PolicyAuthorizationResult.Challenge 方法

定义

指示未经身份验证的用户请求访问需要身份验证的终结点。

public:
 static Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ Challenge();
public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Challenge ();
static member Challenge : unit -> Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult
Public Shared Function Challenge () As PolicyAuthorizationResult

返回

PolicyAuthorizationResult

适用于