共用方式為


CookieAuthenticationOptions.AccessDeniedPath 屬性

定義

AccessDeniedPath 屬性會通知中介軟體,其應該將傳出 403 禁止狀態碼變更為指定路徑的 302 重新導向。

public:
 property Microsoft::AspNetCore::Http::PathString AccessDeniedPath { Microsoft::AspNetCore::Http::PathString get(); void set(Microsoft::AspNetCore::Http::PathString value); };
public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get; set; }
member this.AccessDeniedPath : Microsoft.AspNetCore.Http.PathString with get, set
Public Property AccessDeniedPath As PathString

屬性值

適用於