共用方式為


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

適用於