CertificateAuthenticationFailedContext 類別

定義

發生失敗時所使用的內容。

public ref class CertificateAuthenticationFailedContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::Certificate::CertificateAuthenticationOptions ^>
public class CertificateAuthenticationFailedContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions>
type CertificateAuthenticationFailedContext = class
    inherit ResultContext<CertificateAuthenticationOptions>
Public Class CertificateAuthenticationFailedContext
Inherits ResultContext(Of CertificateAuthenticationOptions)
繼承

建構函式

CertificateAuthenticationFailedContext(HttpContext, AuthenticationScheme, CertificateAuthenticationOptions)

建構函式。

屬性

Exception

例外狀況。

HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

取得與配置相關聯的驗證選項。

(繼承來源 BaseContext<TOptions>)
Principal

取得或設定包含 ClaimsPrincipal 使用者宣告的 。

(繼承來源 ResultContext<TOptions>)
Properties

取得或設定 AuthenticationProperties

(繼承來源 ResultContext<TOptions>)
Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Result

AuthenticateResult取得結果。

(繼承來源 ResultContext<TOptions>)
Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)

方法

Fail(Exception)

表示驗證期間發生失敗。

(繼承來源 ResultContext<TOptions>)
Fail(String)

表示驗證期間發生失敗。

(繼承來源 ResultContext<TOptions>)
NoResult()

表示此驗證配置沒有傳回任何資訊。

(繼承來源 ResultContext<TOptions>)
Success()

使用 和 Properties 呼叫成功建立票證 Principal

(繼承來源 ResultContext<TOptions>)

適用於