語言

HttpRequestMessageProperty.QueryString 屬性

定義

取得或設定 HTTP 請求的查詢字串。

public:
 property System::String ^ QueryString { System::String ^ get(); void set(System::String ^ value); };
public string QueryString { get; set; }
member this.QueryString : string with get, set
Public Property QueryString As String

屬性值

HTTP 請求的查詢字串。

例外狀況

該值設定為 null。

備註

有許多知名的安全攻擊基於 HTTP 請求的查詢字串(例如 SQL 注入攻擊)。 務必嚴格驗證查詢字串中的參數。 如果你使用這些值而不進行驗證,那就會出現一個眾所皆知的安全漏洞。

適用於