UnvalidatedRequestValuesWrapper.RawUrl 屬性

定義

取得要求的 URL 中網站名稱後面的部分,而不觸發 ASP.NET 要求驗證。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.

適用於