UnvalidatedRequestValues.Url 屬性

定義

在不觸發請求驗證的情況下取得請求的 URL 資料 ASP.NET。

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

屬性值

Uri

一個包含請求 URL 資料的物件。

備註

Important

若使用此功能,必須手動檢查資料中是否有跨站腳本攻擊。

你可以從這個屬性回傳的物件中取得 URL 資料,例如埠號、主機名稱、路徑資訊,以及使用者的資料 Uri

適用於