UnvalidatedRequestValuesWrapper.Url 屬性

定義

取得要求的 URL 資料,而不觸發 ASP.NET 要求驗證。Gets the URL data for the request without triggering ASP.NET request validation.

public:
 virtual property Uri ^ Url { Uri ^ get(); };
public override Uri Url { get; }
member this.Url : Uri
Public Overrides ReadOnly Property Url As Uri

屬性值

Uri

物件,包含要求的 URL 資料。An object that contains the URL data for the request.

備註

重要

如果您使用此屬性,則必須手動檢查資料是否有潛在的跨網站腳本攻擊。If you use this property, you must manually check the data for potential cross-site scripting attacks.

您可以從這個屬性所傳回的物件中,取得 URL 資料,例如埠號碼、主機名稱、路徑資訊,以及使用者的相關資料 UriYou can retrieve URL data such as the port number, host name, path information, and data about the user from the Uri object that this property returns.

適用於