HttpRuntimeSection.UseFullyQualifiedRedirectUrl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示客戶端重定向是否完全合格。
public:
property bool UseFullyQualifiedRedirectUrl { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("useFullyQualifiedRedirectUrl", DefaultValue=false)]
public bool UseFullyQualifiedRedirectUrl { get; set; }
[<System.Configuration.ConfigurationProperty("useFullyQualifiedRedirectUrl", DefaultValue=false)>]
member this.UseFullyQualifiedRedirectUrl : bool with get, set
Public Property UseFullyQualifiedRedirectUrl As Boolean
屬性值
true如果客戶端重定向是完全限定的;否則,。 false 預設值為 false。
- 屬性
範例
以下範例說明如何使用該 UseFullyQualifiedRedirectUrl 屬性。
// Get the UseFullyQualifiedRedirectUrl property value.
Response.Write("UseFullyQualifiedRedirectUrl: " +
configSection.UseFullyQualifiedRedirectUrl + "<br>");
// Set the UseFullyQualifiedRedirectUrl property value set to true.
configSection.UseFullyQualifiedRedirectUrl = true;
' Get the UseFullyQualifiedRedirectUrl property value.
Response.Write("UseFullyQualifiedRedirectUrl: " & _
configSection.UseFullyQualifiedRedirectUrl & "<br>")
' Set the UseFullyQualifiedRedirectUrl property value set to true.
configSection.UseFullyQualifiedRedirectUrl = True
備註
該 UseFullyQualifiedRedirectUrl 屬性表示用戶端重定向是否完全限定(形式為 http://server/path),或是將相對重定向傳送給用戶端。
備註
當此值為 false時,某些瀏覽器可能會在無 cookie 會話中載入頁面時遇到問題。