HttpRequestMessageProperty::QueryString Property

 

Gets or sets the query string for the HTTP request.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property String^ QueryString {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The query string from the HTTP request.

Exception Condition
ArgumentNullException

The value is set to null.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: