語言

CookieAuthenticationOptions.LoginPath 屬性

定義

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

屬性值

適用於