AuthenticationHandler<TOptions>.ChallengeAsync 方法

定義

多載

ChallengeAsync(AuthenticationProperties)

挑戰目前的要求。

ChallengeAsync(ChallengeContext)

ChallengeAsync(AuthenticationProperties)

來源:
AuthenticationHandler.cs
來源:
AuthenticationHandler.cs

挑戰目前的要求。

public:
 virtual System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member ChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ChallengeAsync (properties As AuthenticationProperties) As Task

參數

properties
AuthenticationProperties

AuthenticationProperties,其中包含使用驗證抵達的額外中繼資料。

傳回

工作。

實作

適用於

ChallengeAsync(ChallengeContext)

public:
 virtual System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
abstract member ChallengeAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task
Public Function ChallengeAsync (context As ChallengeContext) As Task

參數

傳回

實作

適用於