共用方式為


RemoteAuthenticationHandler<TOptions>.HandleAccessDeniedErrorAsync 方法

定義

衍生型別可能會覆寫這個方法,以處理拒絕存取的錯誤。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::HandleRequestResult ^> ^ HandleAccessDeniedErrorAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult> HandleAccessDeniedErrorAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
abstract member HandleAccessDeniedErrorAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult>
override this.HandleAccessDeniedErrorAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult>
Protected Overridable Function HandleAccessDeniedErrorAsync (properties As AuthenticationProperties) As Task(Of HandleRequestResult)

參數

傳回

HandleRequestResult

適用於