HttpRequestMessageExtensions.GetQueryNameValuePairs Method (HttpRequestMessage)

 

Gets the parsed query string as a collection of key-value pairs.

Namespace:   System.Net.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

public static IEnumerable<KeyValuePair<string, string>> GetQueryNameValuePairs(
	this HttpRequestMessage request
)

Parameters

request
Type: System.Net.Http.HttpRequestMessage

The HTTP request.

Return Value

Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>

The query string as a collection of key-value pairs.

Return to top
Show: