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),还是将相对重定向发送到客户端。

注释

当此值为 时,某些浏览器可能会在无 Cookie 会话中加载页面时出现问题。

适用于