UnvalidatedRequestValuesWrapper.RawUrl 属性

定义

在未触发 ASP.NET 请求验证的情况下,获取遵循网站名称的请求的 URL 的部分内容。Gets the part of the requested URL that follows the website name, without triggering ASP.NET request validation.

public:
 virtual property System::String ^ RawUrl { System::String ^ get(); };
public override string RawUrl { get; }
member this.RawUrl : string
Public Overrides ReadOnly Property RawUrl As String

属性值

String

遵守网站名称的 URL 部件。The part of the URL that follows the website name.

注解

重要

如果使用此属性,则必须手动检查数据是否存在潜在的跨站点脚本攻击。If you use this property, you must manually check the data for potential cross-site scripting attacks.

如果完整的请求 URL 为 http://www.contoso.com/default.aspx?id=44 ,则的值 RawUrl/default.aspx?id=44If the complete request URL is http://www.contoso.com/default.aspx?id=44, the value of RawUrl is /default.aspx?id=44.

适用于