RemoteAuthenticationEvents.OnAccessDenied 属性

定义

在远程服务器返回访问被拒绝错误时调用。

public:
 property Func<Microsoft::AspNetCore::Authentication::AccessDeniedContext ^, System::Threading::Tasks::Task ^> ^ OnAccessDenied { Func<Microsoft::AspNetCore::Authentication::AccessDeniedContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::AccessDeniedContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.AccessDeniedContext,System.Threading.Tasks.Task> OnAccessDenied { get; set; }
member this.OnAccessDenied : Func<Microsoft.AspNetCore.Authentication.AccessDeniedContext, System.Threading.Tasks.Task> with get, set
Public Property OnAccessDenied As Func(Of AccessDeniedContext, Task)

属性值

适用于