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 插入式攻擊)。 請一定要嚴格驗證查詢字串內所包含的參數。 如果您使用這些值而未加以驗證,就會開啟已知的安全性漏洞。

適用於