ResultContext<TOptions> クラス

定義

AuthenticateResults を生成するイベントの基本コンテキスト。

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

型パラメーター

TOptions
継承
ResultContext<TOptions>
派生

コンストラクター

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

ResultContext<TOptions> の新しいインスタンスを初期化します。

プロパティ

HttpContext

コンテキスト。

(継承元 BaseContext<TOptions>)
Options

スキームに関連付けられている認証オプションを取得します。

(継承元 BaseContext<TOptions>)
Principal

ユーザー要求を含む を ClaimsPrincipal 取得または設定します。

Properties

AuthenticationProperties を取得または設定します。

Request

要求。

(継承元 BaseContext<TOptions>)
Response

応答。

(継承元 BaseContext<TOptions>)
Result

結果を取得します AuthenticateResult

Scheme

認証スキームです。

(継承元 BaseContext<TOptions>)

メソッド

Fail(Exception)

認証中にエラーが発生したことを示します。

Fail(String)

認証中にエラーが発生したことを示します。

NoResult()

この認証スキームに関する情報が返されなかったことを示します。

Success()

Propertiesを使用してチケットを作成する成功をPrincipal呼び出します。

適用対象