CookieAuthenticationOptions.LoginPath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
LoginPath 屬性是處理程序處理 ChallengeAsync 時用於重定向目標的屬性。 目前的網址會被加入 LoginPath 的查詢字串參數,由 ReturnUrlParameter 命名。 一旦向 LoginPath 請求獲得新的 SignIn 身份,ReturnUrlParameter 值會被用來將瀏覽器重新導向回原始網址。
public:
property Microsoft::AspNetCore::Http::PathString LoginPath { Microsoft::AspNetCore::Http::PathString get(); void set(Microsoft::AspNetCore::Http::PathString value); };
public Microsoft.AspNetCore.Http.PathString LoginPath { get; set; }
member this.LoginPath : Microsoft.AspNetCore.Http.PathString with get, set
Public Property LoginPath As PathString