ResultContext<TOptions> 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
生成 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 : AuthenticationSchemeOptionstype 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>(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。 |