CookieAuthenticationEvents.OnRedirectToAccessDenied Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Wird aufgerufen, wenn der Client an die URL für den zugriff verweigerten Zugriff umgeleitet werden muss.
public:
property Func<Microsoft::AspNetCore::Authentication::Cookies::CookieRedirectContext ^, System::Threading::Tasks::Task ^> ^ OnRedirectToAccessDenied { Func<Microsoft::AspNetCore::Authentication::Cookies::CookieRedirectContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::Cookies::CookieRedirectContext ^, System::Threading::Tasks::Task ^> ^ value); };
public:
property Func<Microsoft::AspNetCore::Authentication::RedirectContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^, System::Threading::Tasks::Task ^> ^ OnRedirectToAccessDenied { Func<Microsoft::AspNetCore::Authentication::RedirectContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::RedirectContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext,System.Threading.Tasks.Task> OnRedirectToAccessDenied { get; set; }
public Func<Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>,System.Threading.Tasks.Task> OnRedirectToAccessDenied { get; set; }
member this.OnRedirectToAccessDenied : Func<Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext, System.Threading.Tasks.Task> with get, set
member this.OnRedirectToAccessDenied : Func<Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>, System.Threading.Tasks.Task> with get, set
Public Property OnRedirectToAccessDenied As Func(Of CookieRedirectContext, Task)
Public Property OnRedirectToAccessDenied As Func(Of RedirectContext(Of CookieAuthenticationOptions), Task)