共用方式為


HttpRuntimeSection.UseFullyQualifiedRedirectUrl 屬性

定義

取得或設定一個值,表示客戶端重定向是否完全合格。

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 會話中載入頁面時遇到問題。

適用於