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