Szerkesztés

Megosztás a következőn keresztül:


HttpRequestMessageProperty.QueryString Property

Definition

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

Property Value

The query string from the HTTP request.

Exceptions

The value is set to null.

Remarks

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.

Applies to