HttpRequestMessageProperty.QueryString 屬性

定義

取得或設定 HTTP 要求的查詢字串。Gets or sets the query string for the HTTP request.

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 要求中的查詢字串。The query string from the HTTP request.

例外狀況

這個值設定為 nullThe value is set to null.

備註

有許多已知的安全性攻擊是根據 HTTP 要求的查詢字串 (例如,SQL 插入式攻擊)。There are many well-known security attacks based on an HTTP request's query string (for example, the SQL injection attack). 請一定要嚴格驗證查詢字串內所包含的參數。Always rigorously validate the parameters contained in the query string. 如果您使用這些值而未加以驗證,就會開啟已知的安全性漏洞。If you use the values without validation, a well-known security hole is open.

適用於