FormsAuthenticationConfiguration.LoginUrl プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文
Public Property LoginUrl As String
Dim instance As FormsAuthenticationConfiguration Dim value As String
value = instance.LoginUrl
instance.LoginUrl = value
public string LoginUrl { get; set; }
public: property String^ LoginUrl { String^ get (); void set (String^ value); }
/** @property */ public String get_LoginUrl ()
/** @property */ public void set_LoginUrl (String value)
public function get LoginUrl () : String
public function set LoginUrl (value : String)
プロパティ値
ユーザーが認証されなかった場合に要求がリダイレクトされる URL。既定値は login.aspx です。
LoginUrl プロパティは、ユーザーが認証されなかった場合、または有効な認証 Cookie が存在しなかった場合、要求がリダイレクトされる URL を指定します。
LoginUrl へのアクセス方法を次のコード例に示します。セクションを取得する方法については、FormsAuthenticationConfiguration クラスのトピックにあるコード例を参照してください。
' Get the current LoginUrl. Dim currentLoginUrl As String = _ formsAuthentication.LoginUrl
' Set the LoginUrl. formsAuthentication.LoginUrl = "newLoginUrl"
// Get the current LoginUrl. string currentLoginUrl = formsAuthentication.LoginUrl;
// Set the LoginUrl. formsAuthentication.LoginUrl = "newLoginUrl";
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
関連項目
FormsAuthenticationConfiguration クラス
FormsAuthenticationConfiguration メンバ
System.Web.Configuration 名前空間
その他の技術情報
authentication 要素 (ASP.NET 設定スキーマ)
authentication の forms 要素 (ASP.NET 設定スキーマ)
authentication の forms の credentials 要素 (ASP.NET 設定スキーマ)
ASP.NET の認証
フォーム認証プロバイダ