Share via


PrincipalContext<TOptions> 類別

定義

處理 ClaimsPrincipal 之驗證事件的基底內容。

generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionspublic ref class PrincipalContext abstract : Microsoft::AspNetCore::Authentication::PropertiesContext<TOptions>
public abstract class PrincipalContext<TOptions> : Microsoft.AspNetCore.Authentication.PropertiesContext<TOptions> where TOptions : AuthenticationSchemeOptions
type PrincipalContext<'Options (requires 'Options :> AuthenticationSchemeOptions)> = class
    inherit PropertiesContext<'Options (requires 'Options :> AuthenticationSchemeOptions)>
Public MustInherit Class PrincipalContext(Of TOptions)
Inherits PropertiesContext(Of TOptions)

類型參數

TOptions
繼承
衍生

建構函式

PrincipalContext<TOptions>(HttpContext, AuthenticationScheme, TOptions, AuthenticationProperties)

建構函式。

屬性

HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

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

(繼承來源 BaseContext<TOptions>)
Principal

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

Properties

取得或設定 AuthenticationProperties

(繼承來源 PropertiesContext<TOptions>)
Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)

適用於