AccessDeniedContext 類別

定義

提供處理常式提供者的拒絕存取失敗內容資訊。

public ref class AccessDeniedContext : Microsoft::AspNetCore::Authentication::HandleRequestContext<Microsoft::AspNetCore::Authentication::RemoteAuthenticationOptions ^>
public class AccessDeniedContext : Microsoft.AspNetCore.Authentication.HandleRequestContext<Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions>
type AccessDeniedContext = class
    inherit HandleRequestContext<RemoteAuthenticationOptions>
Public Class AccessDeniedContext
Inherits HandleRequestContext(Of RemoteAuthenticationOptions)
繼承

建構函式

AccessDeniedContext(HttpContext, AuthenticationScheme, RemoteAuthenticationOptions)

初始化 AccessDeniedContext 的新執行個體。

屬性

AccessDeniedPath

取得或設定將重新導向使用者代理程式的端點路徑。 根據預設,這個屬性設定為 AccessDeniedPath

HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

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

(繼承來源 BaseContext<TOptions>)
Properties

驗證工作階段的其他狀態值。

Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Result

HandleRequestResult處理常式所使用的 。

(繼承來源 HandleRequestContext<TOptions>)
ReturnUrl

取得或設定傳回 URL,其會流向拒絕存取頁面。 如果未 ReturnUrlParameter 設定,則不會使用這個屬性。

ReturnUrlParameter

取得或設定將用來流動傳回 URL 的參數名稱。 根據預設,這個屬性設定為 ReturnUrlParameter

Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)

方法

HandleResponse()

中斷此要求的所有處理並返回用戶端。 呼叫端負責產生完整回應。

(繼承來源 HandleRequestContext<TOptions>)
SkipHandler()

停止處理目前處理常式中的要求。

(繼承來源 HandleRequestContext<TOptions>)

適用於