HttpRequestMessageProperty.QueryString 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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 注入攻擊)。 務必嚴格驗證查詢字串中的參數。 如果你使用這些值而不進行驗證,那就會出現一個眾所皆知的安全漏洞。